temperature Web Panel - webpage not showing temperature

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.

Does anyone have any suggestions?

Thanks

Steve

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.

I managed to solve the arduino.local problem by installing apple bonjour (see arduino.local doesn't work - #10 by noblepepper - Arduino Yún - Arduino Forum) .

Still cannot get the temperature on the webpage though.

I'll try another card tomorrow when I can get one.

Thanks.

Maybe try to change permissions on the whole temperatureweb folder including the files inside.
this is what i did.
For me it is working.

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.

Thanks again

Please try Google Chrome instead of MS Internet Explorer. This helps in my case.

Best regards

Don4711

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.

Steve

Hi,

I have been trying this example as well and am having difficulty.

As far as I can tell nothing is being written to the card. When I look at the card:-

http://192.168.1.111/sd/TemperatureWebPanel

I get nothing.

I can access http://192.168.1.111/sd

and access the Yun config page.

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.

Oh yes, I am running the modified bridge.cpp

Regards

Liam

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" ?

Hi Frederico,

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

Replace the card and I got:-

[ 2049.810000] sd 0:0:0:0: [sda] 1941504 512-byte logical blocks: (994 MB/948 MiB)
[ 2049.910000] sd 0:0:0:0: [sda] No Caching mode page present
[ 2049.910000] sd 0:0:0:0: [sda] Assuming drive cache: write through
[ 2049.910000] sd 0:0:0:0: [sda] No Caching mode page present
[ 2049.910000] sd 0:0:0:0: [sda] Assuming drive cache: write through
[ 2049.990000] sda: sda1

Which must means something..?

Hope thats helpful.

Liam

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

root@Arduino:

Finally, execute this command

ls -la /mnt /mnt/sda1 /www

What's the output?

Hi Frederico,

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

and finally a root@7t Yun prompt.

Entering 'ls -la /mnt /mnt/sdal /www' resulted in:-

root@7thYun:/# ls -la /mnt /mnt/sdal /www
ls: /mnt/sdal: No such file or directory
/mnt:
drwxr-xr-x 1 root root 0 Aug 8 20:59 [1;34m.[0
m
drwxr-xr-x 1 root root 0 Aug 8 20:52 [1;34m..[
0m
lrwxrwxrwx 1 root root 9 Aug 8 20:59 [1;36ms
d[0m -> [1;34m/mnt/sda1[0m
drwxr-xr-x 3 root root 32768 Jan 1 1970 [1;34ms
da1[0m

/www:
drwxr-xr-x 1 root root 0 Aug 8 20:59 [1;34m.
[0m
drwxr-xr-x 1 root root 0 Aug 8 20:52 [1;34m.
.[0m
drwxr-xr-x 2 root root 27 Aug 19 2013 [1;34mc
gi-bin[0m
-rw-r--r-- 1 root root 436 Jul 30 14:06 [0;0min
dex.html[0m
drwxr-xr-x 2 root root 53 Aug 19 2013 [1;34mk
eystore_manager_example[0m
drwxr-xr-x 4 root root 61 Aug 19 2013 [1;34ml
uci-static[0m
lrwxrwxrwx 1 root root 21 Aug 8 20:59 [1;36ms
d[0m -> [1;34m/mnt/sda1/arduino/www[0m
root@7thYun:/#

Examining the mSD card directly showed the arduino directory is there as well as the sub directory www but no files or data have been created.

Is that any help?

Thanks

Liam

It is. I see you have folder /www/sd -> /mnt/sda1/arduino/www

Are you sure you are uploading via wifi? (uploading via USB will NOT trasfer files) I don't see any other reason for the upload to fail

Hi Frederico,

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.

Liam

VideoLiam:
Hi Frederico,

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

Thank you very much, that was my problem.
I created an account just to thank you :smiley:

:slight_smile: