How upload templates in the SheevaPlug

Moderator: Mattk

Post Reply
vecerapl
Junior Boarder
Junior Boarder
Posts: 27
Joined: Sun Dec 06, 2009 2:05 pm

How upload templates in the SheevaPlug

Post by vecerapl »

Hi, please how to upload template in the SheevaPlug. I read something about /public/graphs/, but I do not know how this use. The instructions I have not found anything.
User avatar
WS Grave
Expert Boarder
Expert Boarder
Posts: 103
Joined: Fri Oct 30, 2009 3:42 pm
Location: Grave - the Netherlands
Contact:

Re:How upload templates in the SheevaPlug

Post by WS Grave »

Hi Vecerapi, open your file explorer en doubleclick on "Network".
Wait for a second or 10 and you'll see "Meteohub".
Click that and you'll have to enter an ID and password, which probably are Meteohub and Meteohub.
Then you have access to the mentioned directories.

PS.
I had the same problem when I configured my Meteohub.
Had to ask here how to get to it ;)
vecerapl
Junior Boarder
Junior Boarder
Posts: 27
Joined: Sun Dec 06, 2009 2:05 pm

Re:How upload templates in the SheevaPlug

Post by vecerapl »

Thank you for the information. Meteohub me to your IP and your own password. Do meteohub through FIREFOX get cool. Then, simply choose the maintenance, where you can meteohub aktalizovat and which can be updated so that you can upload files. So that probably over the upload of files can be uplodovat templates in HTML. But how then the template must delete or edit:) Are there any templates to download?
User avatar
WS Grave
Expert Boarder
Expert Boarder
Posts: 103
Joined: Fri Oct 30, 2009 3:42 pm
Location: Grave - the Netherlands
Contact:

Re:How upload templates in the SheevaPlug

Post by WS Grave »

You can use any html-design you like.
There were you want to put data you use a tag from the all-sensors.txt and put them between [ and ].

For example:
[actual_th0_temp_c] °C wil produce 9.8 °C

Put a template (example actualweather.html) into the directory graphs. You can put as many templates there as you like.

In the Meteohub admin (graph upload) you should find the template name (it will have a asterix* instead of the .html) in the pulldown menu, then decide how often the file should be updated and give a name for the file that's going to be uploaded to your website.

There are only few templates available for Meteohub. Would be nice if they would be shared more.
vecerapl
Junior Boarder
Junior Boarder
Posts: 27
Joined: Sun Dec 06, 2009 2:05 pm

Re:How upload templates in the SheevaPlug

Post by vecerapl »

And as my template created for it through the admin meteohub put? :)
gust
Junior Boarder
Junior Boarder
Posts: 29
Joined: Mon Sep 19, 2011 9:18 pm
Location: France

Re: How upload templates in the SheevaPlug

Post by gust »

In a Sheevaplug one can find 2 graphs directories
/data/graphs
/mnt/graphs
Which one is the right one to put a template in, which will be automatically uploaded to a web server please?

How do you insert data tags in your template? href = [actual_th0_temp_c]?

Similar question for graphs. How to you insert them in the template please?

Thanks.
gust
Junior Boarder
Junior Boarder
Posts: 29
Joined: Mon Sep 19, 2011 9:18 pm
Location: France

Re: How upload templates in the SheevaPlug

Post by gust »

Where is the all-sensors.txt file please?
Command "locate all-sensors.txt" did not find it in my Sheevaplug.
Is there an other file listing all the tags?

Thanks
Post Reply