Re: [weewx-user] wee_reports timestamp format

2022-07-03 Thread Tom Keffer
Fixed in commit b164c74


On Sun, Jun 26, 2022 at 3:40 AM Tom Keffer  wrote:

> The timestamp should be in unix epoch time. You can use a tool such as
> epochconvert.com to figure out the timestamp.
>
> You're right: it really should be documented. Issue #776
> .
>
> On Sat, Jun 25, 2022 at 11:56 PM Auchtermuchty Weather <
> shunrac...@gmail.com> wrote:
>
>> The help is as follows:
>>
>> $ wee_reports --help
>> Usage: wee_reports: [config_file] [timestamp] [--config=CONFIG_FILE]
>> [--help]
>>
>> Run all reports defined in the specified configuration file. Use this
>> utility
>> to run reports immediately instead of waiting for the end of an archive
>> interval.
>>
>> Options:
>>   -h, --helpshow this help message and exit
>>   --config=CONFIG_FILE  Use the configuration file CONFIG_FILE
>>
>> But I have no idea, and it doesn't give a clue, nor does the
>> documentation, about what format a timestamp should be in.
>>
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "weewx-user" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to weewx-user+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/weewx-user/b738c268-fee9-4676-84d2-4b4a2efd996en%40googlegroups.com
>> 
>> .
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/CAPq0zEBr%2BvDS_r%3DeJeZy8uf%3DE7OjLbx6kGu%2BgGoCuCH4PNSYeg%40mail.gmail.com.


[weewx-user] iwdl / yrno

2022-07-03 Thread Kalli
 Hi garry I hope you can help me. the forecast from yrno no longer works. 
attached the yrno.php Thanks. Kalli

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/803a6c26-ed59-476c-8d6d-6ffc13f4a3c9n%40googlegroups.com.
https://www.yr.no/Germany/North Rhine-Westphalia/Düsseldorf 
District/Krefeld "/forecast.xml";
   
$xml = simplexml_load_string(file_get_contents($url));
$json = json_encode($xml, TRUE);

echo $json;
}

if (isset($_GET['url'])) {
$url = $_GET['url'];

$xml = simplexml_load_string(file_get_contents($url));
$json = json_encode($xml, TRUE);

echo $json;
}
// This file is part of iWDL
//
// iWDL is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// iWDL is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with iWDL.  If not, see .

//
// Main javascript file
// By Sietse Visser (sie...@sietse.nl)
// Version 1.3
//

//
// The clientraw fieldlist and the unit type
//
var cr_fields = new Array;
cr_fields[  0] = new Array("Header" ,  "");
cr_fields[  1] = new Array("Avg Speed"  ,  "kn");
cr_fields[  2] = new Array("Gusts"  ,  "kn");
cr_fields[  3] = new Array("WindDir",  "deg");
cr_fields[  4] = new Array("Out Temp"   ,  "c");
cr_fields[  5] = new Array("Out Hum",  "%");
cr_fields[  6] = new Array("Baro"   ,  "hpa");
cr_fields[  7] = new Array("RainDay",  "mm");
cr_fields[  8] = new Array("RainMon",  "mm");
cr_fields[  9] = new Array("RainYear"   ,  "mm");
cr_fields[ 10] = new Array("RainRate"   ,  "mm");
cr_fields[ 11] = new Array("MaxRainRate",  "mm");
cr_fields[ 12] = new Array("In Temp",  "c");
cr_fields[ 13] = new Array("In Hum" ,  "%");
cr_fields[ 14] = new Array("Soil Temp"  ,  "c");
cr_fields[ 15] = new Array("Forecast Icon"  ,  "Icon 1");
cr_fields[ 16] = new Array("WMR968 Extra Temp"  ,  "c");
cr_fields[ 17] = new Array("WMR968 Extra Hum"   ,  "%");
cr_fields[ 18] = new Array("WMR968 Extra Sensor",  "Number");
cr_fields[ 19] = new Array("Yesterday Rain" ,  "mm");
cr_fields[ 20] = new Array("Extra Temp Sensor 1",  "c");
cr_fields[ 21] = new Array("Extra Temp Sensor 2",  "c");
cr_fields[ 22] = new Array("Extra Temp Sensor 3",  "c");
cr_fields[ 23] = new Array("Extra Temp Sensor 4",  "c");
cr_fields[ 24] = new Array("Extra Temp Sensor 5",  "c");
cr_fields[ 25] = new Array("Extra Temp Sensor 6",  "c");
cr_fields[ 26] = new Array("Extra Hum Sensor 1" ,  "%");
cr_fields[ 27] = new Array("Extra Hum Sensor 2" ,  "%");
cr_fields[ 28] = new Array("Extra Hum Sensor 3" ,  "%");
cr_fields[ 29] = new Array("Hour"   ,  "Time");
cr_fields[ 30] = new Array("Minute" ,  "Time");
cr_fields[ 31] = new Array("Seconds",  "Time");
cr_fields[ 32] = new Array("Station Name"   ,  "");
cr_fields[ 33] = new Array("Dallas Lightning Count" ,  "Number");
cr_fields[ 34] = new Array("Solar Reading"  ,  "Number");
cr_fields[ 35] = new Array("Day",  "Time");
cr_fields[ 36] = new Array("Month"  ,  "Time");
cr_fields[ 37] = new Array("WMR968 Battery 1"   ,  "%");
cr_fields[ 38] = new Array("WMR968 Battery 2"   ,  "%");
cr_fields[ 39] = new Array("WMR968 Battery 3"   ,  "%");
cr_fields[ 40] = new Array("WMR968 Battery 4"   ,  "%");
cr_fields[ 41] = new Array("WMR968 Battery 5"   ,  "%");
cr_fields[ 42] = new Array("WMR968 Battery 6"   ,  "%");
cr_fields[ 43] = new Array("WMR968 Battery 7"   ,  "%");
cr_fields[ 44] = new Array("WindChill"  ,  "c");
cr_fields[ 45] = new Array("Humidex",  "c");
cr_fields[ 46] = new Array("Max Day Temp"   ,  "c");
cr_fields[ 47] = new Array("Min Day Temp"   ,  "c");
cr_fields[ 48] = new Array("Icon Type"  ,  "Icon 2");
cr_fields[ 49] = new Array("Weather Desc"   ,  "");
cr_fields[ 50] =