Date Format

Discussion of the Meteohub software package

Moderator: Mattk

Post Reply
AAMFlyer
Gold Boarder
Gold Boarder
Posts: 213
Joined: Mon Aug 11, 2008 12:55 am
Location: Arvada, CO

Date Format

Post by AAMFlyer »

Boris - awesome job with all the updates to the program! :cheer:

Some day - I would really love to see the option to change the date format to M/D/Y rather than just D/M/Y - it's just backwards for those of us in the US.... I get an email once a month asking to change the format!

Thanks!
sevenless
Gold Boarder
Gold Boarder
Posts: 160
Joined: Wed Jul 02, 2008 7:35 pm
Location: Seattle WA, USA

Re:Date Format

Post by sevenless »

Rather than using the full timestamp variable, there are several pre-chunked variables already available that should enable you to do this easily enough either via PHP or standard HTML substitution: [actual_date0_day_local], [actual_date0_month_local] and [actual_date0_year_local] come to mind, along with hour/minute/second to build a full display.

It's slightly more complicated if you're using the flash Dashboard, but I believe you can manipulate the all_sensors.xml file sufficiently to accomplish that task?

(Though of course having the option to specify your local date/time format by using standard UNIX time() substitutions would always be a welcome addition!)
AAMFlyer
Gold Boarder
Gold Boarder
Posts: 213
Joined: Mon Aug 11, 2008 12:55 am
Location: Arvada, CO

Re:Date Format

Post by AAMFlyer »

I'll take a look at that. The time stamp I'm concerned with is what's in the clientraw for WDL.....
AAMFlyer
Gold Boarder
Gold Boarder
Posts: 213
Joined: Mon Aug 11, 2008 12:55 am
Location: Arvada, CO

Re:Date Format

Post by AAMFlyer »

Thanks Sevenless - you got me looking at my WDL xml file and sure enough the date was backwards even though the Configurator program had it set correctly.... All though I couldn't find the all_sensor file this did the trick... Do you know where that is located - I couldn't find it either through ssh... Oh well!

Now if I could find a way to change to a 12 hr clock rather than 24 hr....

Thanks!
sevenless
Gold Boarder
Gold Boarder
Posts: 160
Joined: Wed Jul 02, 2008 7:35 pm
Location: Seattle WA, USA

Re:Date Format

Post by sevenless »

In manual v3.1 the information about the all-sensors.txt and .xml files are covered starting in section 2.11.2, and in much more thorough detail in sections 4.4 (.txt) and 4.5 (.xml).

You can query them directly by pointing your browser to http://<path_to_meteohub>/meteograph.cgi?text=all for the all-sensors.txt, and http://<path_to_meteohub>/meteograph.cgi?text=allxml for the .xml version of the file.

Alternately you can also generate the files on the graph uploads page -- they're one of the drop-down choices available in addition to any graphs you've defined.
Post Reply