Oops, as soon as the moon phase changes the problem comes back. Here's a more general routine that removes the entire statement and should work for all moon phases:
function fixCzech($str) {
$strLength = strlen($str);
$strStart = strpos($str,'<item sensor="lunar" cat="phase" unit="cz ...
Search found 7 matches
- Wed Jan 06, 2010 2:05 am
- Forum: Announcements
- Topic: Update 4.6
- Replies: 20
- Views: 15538
- Tue Jan 05, 2010 11:27 pm
- Forum: Announcements
- Topic: Update 4.6
- Replies: 20
- Views: 15538
Re:Update 4.6
Replacing specific characters isn't working for me. Here is a php function that replaces the entire Czech lunar description with a space in the XML. With this removed, the XML validates.
function fixCzech($str) {
$hexstr = pack('H*','436F7576616AC3AD63C35F4DC49573C363');
$str = str_replace ...
function fixCzech($str) {
$hexstr = pack('H*','436F7576616AC3AD63C35F4DC49573C363');
$str = str_replace ...
- Sun Jan 03, 2010 11:38 pm
- Forum: Announcements
- Topic: Update 4.6
- Replies: 20
- Views: 15538
Re:Update 4.6
My problem reading the XML seems to be the new Czech characters (for lunar). I can't seem to come up with an encoding that allows php to read these as part of an XML file.
I can probably parse the entire string and do character replacement to get valid XML but that takes a long time to execute for ...
I can probably parse the entire string and do character replacement to get valid XML but that takes a long time to execute for ...
- Sun Jan 03, 2010 8:57 pm
- Forum: Announcements
- Topic: Update 4.6
- Replies: 20
- Views: 15538
Re:Update 4.6
Hi,
I just installed 4.6 build 67. Now my XML files have unprintable characters in them that are causing a problem for php simplexml_load_file.
Have you changed the encoding?
Thanks!
I just installed 4.6 build 67. Now my XML files have unprintable characters in them that are causing a problem for php simplexml_load_file.
Have you changed the encoding?
Thanks!
- Sun Jan 03, 2010 8:15 pm
- Forum: Meteohub Application
- Topic: evapotransiration/evotranspiration for month and year
- Replies: 0
- Views: 4430
evapotransiration/evotranspiration for month and year
Would it be possible to include evotranspiration in the month1 and year1 XML data?
Meteohub is great! I can finally use the data on my WeatherlinkIP.
Meteohub is great! I can finally use the data on my WeatherlinkIP.
- Sun Jan 03, 2010 8:02 pm
- Forum: Meteohub Application
- Topic: rain data for month1 and year1
- Replies: 1
- Views: 1369
XML Year and Month Data - suggested solution
I now understand the problem I am having with year-to-date and month-to-date XML data and would like to suggest a solution.
These are calculated infrequently (year data once per day at 4:47 am) so that the current values do not include activity since that time. It makes sense to do this since it ...
These are calculated infrequently (year data once per day at 4:47 am) so that the current values do not include activity since that time. It makes sense to do this since it ...
- Sun Jan 03, 2010 6:27 am
- Forum: Meteohub Application
- Topic: rain data for month1 and year1
- Replies: 1
- Views: 1369
rain data for month1 and year1
I just installed the Meteohub software and am uploading all-sensors-xml every minute and using it to populate a web page.
We had some rain this afternoon, which was correctly reported in actual, day1 and last24. Since we are at the beginning of a month and year, the the monthly and yearly totals ...
We had some rain this afternoon, which was correctly reported in actual, day1 and last24. Since we are at the beginning of a month and year, the the monthly and yearly totals ...