Sure thing. They're attached to this message On 15 April 2014 22:44, James Adam wrote: > Can you send the source of your PHP? > > > > — James > > > On Tuesday, 15 April 2014 at 14:17, Rebecca Noonan wrote: > > > I haven't thought if that no. How would I send that data to the printer > from the HTML page with the messages? Not too experienced in all this so > need a bit of an example > > > > On Tuesday, 15 April 2014, James Adam james.adam@gmail.com)> wrote: > > > Have you considered having the PHP script which receives the form data > actually build the HTML and post it to the printer server directly, rather > than going through Processing? > > > > > > > > > > > > — James > > > > > > > > > On Tuesday, 15 April 2014 at 13:23, Rebecca Noonan wrote: > > > > > > > Hi James, > > > > > > > > Thanks for the reply. If that's the case with images with a lot of > black in them then it won't work on the project so we'll have to leave the > images part out so. I was kind of thinking the fact they were heavily black > might not work anyway as it would be hard to make out smaller objects > within the blackness. > > > > > > > > On the messages side of things, at the moment I've set up a dummy > webpage with a simple form for testing: > > > > http://praxis.cit.ie/~rebeccanoonan/persistence1/rnoonan/form2.php > > > > > > > > When a message is sent it goes into a database but also sends to > this webpage that the user wouldn't see: > > > > > http://praxis.cit.ie/~rebeccanoonan/persistence1/rnoonan/messageresults.php > > > > > > > > I then have Processing extracting XML data from the second link and > printing it in Processing. After that, I've incorporated HTTP Requests for > Processing and I'm using that to take the newest message and use a post > request to my printer URL. When I run the sketch, the newest message from > the form prints. > > > > > > > > I don't have a GitHub account but the sketch I have to do this is > very short. I've attached the pde file but I'll copy and paste it below too > if that's easier for you. > > > > > > > > What I want to do from here is get the Processing sketch to check if > there's new messages all the time and then make the messages print > automatically rather than me having to press run all the time when a new > message appears. > > > > > > > > Here's the code from my processing sketch: > > > > > > > > XML xml; > > > > import http.requests.*; > > > > > > > > > > > > public void setup() { > > > > xml = loadXML(" > http://praxis.cit.ie/~rebeccanoonan/persistence1/RNoonan/messageresults.php > "); > > > > > > > > XML[] msgs = xml.getChildren("message"); > > > > > > > > for (int i = 0; i < 1; i++) { > > > > String content = msgs[i].getContent(); > > > > > > > > String content_styled = "

" + content + "

"; > > > > println("message is :" + content ); > > > > > > > > > > > > > > > > > > > > size(400,400); > > > > smooth(); > > > > > > > > PostRequest post = new PostRequest(" > http://printer.exciting.io/print/6g2o1s6t0f4e7v4a"); > > > > post.addData("content", content_styled); > > > > post.send(); > > > > > > > > } > > > > } > > > > > > > > > > > > > > > > Thanks, > > > > Rebecca > > > > > > > > On Tuesday, April 15, 2014 7:05:30 PM UTC+1, James Adam wrote: > > > > > Hi Rebecca, > > > > > > > > > > The short answer is that you can print pretty much anything that > can be part of an HTML page, so that includes images if they are part of > the HTML via the `img` tag. If I were working on your project, I’d use a > `file` field as part of the same form that the children add their message, > so they can upload their picture with the message. > > > > > > > > > > Is your software available online anywhere, like github or > bitbucket? It might be easier to give constructive advice against some > concrete code? > > > > > > > > > > As an aside, given you’ve mentioned that these are images from > space, I’d be very wary of images with a lot of black in them; these tend > to cause the printer to jam :-/ > > > > > > > > > > > > > > > — James > > > > > > > > > > > > > > > On Tuesday, 15 April 2014 at 10:57, Rebecca Noonan wrote: > > > > > > > > > > > Hi! > > > > > > > > > > > > I've set up a printer to incorporate into my final year project > in college. So far I've the printer wired and everything prints fine from a > test page with my printer URL. I've also set up a form where people can > enter messages and they are sent to both a database and also another hidden > webpage. I'm using XML in Processing to grab the newest message sent > through the form that's on the hidden webpage and redirects the message to > my printer backend server archive and when I run a Processing sketch, the > newest message prints. I still need to figure out how to make this happen > automatically actually, without having to press run in Processing when a > message is sent. If anyone knows a way to do that, that would be great! > > > > > > > > > > > > The main reason I'm posting is to ask about printing images. For > the project, children manipulate an image from space sent to an observa> > > > To unsubscribe from this group and stop receiving emails from it, send an > email to gfr-printer...@googlegroups.com (javascript:;) (javascript:) > (mailto:gfr-printer+unsubscribe@googlegroups.com (javascript:;) > (javascript:)). > > > > > > To post to this group, send email to gfr-p...@googlegroups.com(javascript:;) (javascript:) (mailto: > gfr-p...@googlegroups.com (javascript:;) (javascript:)). > > > > > > Visit this group at http://groups.google.com/group/gfr-printer. > > > > > > For more options, visit https://groups.google.com/d/optout. > > > > > > > > > > > > > > > > > -- > > > > You received this message because you are subscribed to the Google > Groups "Printer" group. > > > > To unsubscribe from this group and stop receiving emails from it, > send an email to gfr-printer+unsubscribe@googlegroups.com (javascript:;) > (mailto:gfr-printer+unsubscribe@googlegroups.com (javascript:;)). > > > > To post to this group, send email to gfr-printer@googlegroups.com(javascript:;) (mailto: > gfr-printer@googlegroups.com (javascript:;)). > > > > Visit this group at http://groups.google.com/group/gfr-printer. > > > > For more options, visit https://groups.google.com/d/optout. > > > > > > > > > > > > Attachments: > > > > - readingmessages.pde > > > > > > > > > > > > > > > -- > > > You received this message because you are subscribed to a topic in the > Google Groups "Printer" group. > > > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/gfr-printer/n_stuS_Rldg/unsubscribe. > > > To unsubscribe from this group and all its topics, send an email to > gfr-printer+unsubscribe@googlegroups.com (javascript:;). > > > To post to this group, send an email to gfr-printer@googlegroups.com(javascript:;). > > > Visit this group at http://groups.google.com/group/gfr-printer. > > > For more options, visit https://groups.google.com/d/optout. > > > > -- > > You received this message because you are subscribed to the Google > Groups "Printer" group. > > To unsubscribe from this group and stop receiving emails from it, send > an email to gfr-printer+unsubscribe@googlegroups.com (mailto: > gfr-printer+unsubscribe@googlegroups.com). > > To post to this group, send email to gfr-printer@googlegroups.com(mailto: > gfr-printer@googlegroups.com). > > Visit this group at http://groups.google.com/group/gfr-printer. > > For more options, visit https://groups.google.com/d/optout. > > > > -- > You received this message because you are subscribed to a topic in the > Google Groups "Printer" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/gfr-printer/n_stuS_Rldg/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > gfr-printer+unsubscribe@googlegroups.com. > To post to this group, send an email to gfr-printer@googlegroups.com. > Visit this group at http://groups.google.com/group/gfr-printer. > For more options, visit https://groups.google.com/d/optout. >