I am trying to get the temperature web panel example to work, I've got the sd card to work and the index and javascript files are onht ecard but when I try to access arduino.local/sd/temperaturewebpanel my browser cannot find server. However if I substitute arduino.local with the IP address of the yun I do get a webpage but it only have the number 0 in the top left hand corner.
I assume from the sketch it should display the time, temperature and how long the sketch has been running.
Hi, this was my first "working" project on Yún.
I am not sure how big could the sd card be, but i formatted it to 1G.
Since the sketch uploads the files automatically to the sd card, i did not have to do it myself.
But the sketch does not create the folder TemperatureWebPanel so the address i have to type in browser
is
arduino.local/sd
The card I'm using is a 32Gb card, I've tried 4Gb & 512Mb cards but for various reasons these didn't work with the Yun. The files were written to the card by the sketch when I uploaded it and if I look at arduino.local/sd then it shows a file called temperaturewebpanel and if I click it then it shows the page with 0 in the top corner.
amadeus3 it seems to me your yun REST api is still password protected. Go to the yun webpanel -> configure and double check the REST api radio button "open" is selected
I'll change TemperatureWebPanel initial comment if opening the REST api solves your problem
Thanks to all for the suggestions, I didn't get a chance to try the smaller card formating (mines still 32Gb - Alight 29ish), and I'm not sure what permissions on the card to change (linux noob) .
However I did manage to set the REST api to open and now when i call up the page I still get the page with the 0 in the top corner for a few seconds, then the proper page arrives. So thanks to Federico for the info. REST means nothing to me yet so I left it as protected when I first setup my Yun, I assume that open is better for the other examples too.
So one example successful, however what I really want to do is control the PWM via a slider on a web page, but that will be the start of another post.
Don4711:
Please try Google Chrome instead of MS Internet Explorer. This helps in my case.
Best regards
Don4711
I'm not sure what made you think I was using IE. I have done all my testing using Chrome with Opera as a backup, I can confirm it also works with the Samsung S3 default browser as well.
Examining the card in a card reader nothjing is written to it. in either the root directory, the arduino directory or the arduino/www directory which I made manually.
The card was formatted in Win XP desktop machine.
It is a 4GB Sandisk class 4 microSD HC card if that matters..
I am going to be getting my hands on another card soon to test that. But has any one any ideas. I have made sure that the Yun REST api is open.
If you please, I'll ask you to run a couple of commands.
Running the YunSerialTerminal (or after having accessed the yun via SSH), what's the output of this command?
ls -la /mnt /www
After having plugged the SD card out and in again, what's the output of
dmesg | tail
Finally, assuming you're uploading the sketch via wifi, does the IDE tell you something like "unable to access /www/sd" ?
Ok, first off I tried a different mSD card a 1Gb from PQ1, who ever they are... and changing nothing got the same result, nothing being written to the SD card, but I was able to use http://192.168.1.111/sd and the browser reported a blank directory.
Ok, on with your requestes. Loaded up the blink sketch, and tested I was accessing the yun via the com port not wi-fi.
Loaded up the YunSerialTerminal via the com port. No errors reported. Open the serial monitor and change the baud rate. nothing. Close the monitor down and reopen the serial monitor (now in 115200) nothing. The sketch suggested I should see the linino bit happening, but nothing.
Try ls -la /mnt /www. It just repeated the command.
Try dmesg | tail. It just repeated the command.
Remove the SD card and the terminal reported:-
[ 2032.680000] sda: detected capacity change from 994050048 to 0
Uhm well the missing output from previous commands may mean your previous sketch was using the Bridge and that it is still running.
But it doesn't matter. The last output is the good one!
It means it's working: your sd card is available under /mnt/sda1
Just to make sure linino has recognized your sd card as a "special" one because it has the arduino folder, please follow the following instructions
To keep things simple: leave the yunservialterminal sketch loaded, unplug the sd card and hit the YUN RST button (white one near the leds)
Open the serial monitor and watch linux starting up (wait about a minute). Plug in the sd card. As you see the same output from before, press the enter key. This will show you something like
OK took a bit trying to get that to work (If anyone is reading in and trying to do the same I needed to change the dialog box next to the baud rate to 'carriage return' to get the root@xxxxx response.)
But once I got going here were the results.
Reset the Yun and a whole load of stuff came down the serial port. Entered the mSD card and carriage return responded with Busy Box V1.19.4
Enter 'help' for a list of commands
A fancy LININO, open wrt screen
Well I am almost happy to report that I seem to have gotten it working, But I am not sure why...
I left the problem alone for a few days and came back to it today.
I started completely from scratch, but used an LM35 sensor from a bread board, and this time I did it all on my laptop, a windoz 7 machine.
After the hassle of getting running on the hack-space network I uploaded one of my blink sketches via wi-fi, loaded the temperature web panel sketch via wi-fi and it worked. Spent a bit of time rearranging the sensor maths, but it remained working. Loaded the blink sketch via the comm port and tried the Web Temperature Panel sketch again via the com port and it worked again.. The mSD card is updated with a file in the arduino/www directory as well.
Not sure why its behaved this time.
One point to note MS Explore 10 is not liking looking up the web panel, but chrome give a 0 for a moment and then automatically moves on to the web page.
Going to try to see if I can repeat the fault/success on my WindozXp setup.
Well I am almost happy to report that I seem to have gotten it working, But I am not sure why...
rock&roll!
The mSD card is updated with a file in the arduino/www directory as well.
Just remember that USB uploading does NOT upload files. It's worked when you uploaded the TWP example the second time because those files were already there from the first, wifi, upload
One point to note MS Explore 10 is not liking looking up the web panel, but chrome give a 0 for a moment and then automatically moves on to the web page.
AFAIK, the initial zero is hardcoded in the html or something, only after the first response the value is updated, so it's perfectly normal. And yes, there may be issue with internet explorer, keep sticking with chrome or firefox