Report Bugs Here

Moderator: Mmiscool

User avatar
By kingedem
#43662 Its not working :(... is it something to do with time? The time() function prints : Mon Mar 21 02:32:34 2016
Also, give me example to set the time of India.

Do I need to format first before loading new firmware?



Mmiscool wrote:I just uploaded a new build that has a more stable wget() function.

As to the url format.
print wget("hexa-instruments.com/") and wget("hexa-instruments.com/bla.htm") are good

print wget("hexa-instruments.com") will not work.
User avatar
By Mmiscool
#43663 It should be working with the new build.

The time should have nothing to do with a valid http request https needs correct time but there is currently no https support.


As for the time you can set up the time zone for india as follows

Note that the delay is needed after the time set up function.
Code: Select alltimesetup(5.5,0)
delay 2000
print time()
end
User avatar
By kingedem
#43665 Micheal,

Thanks for the Timesetup example.

Could you please try this url from your end : graph.facebook.com/fql?q=SELECT total_count FROM link_stat WHERE url='https://www.facebook.com/AAPkaArvind/'

above url with single quotes on browser url displays following results:
{
"data": [
{
"total_count": 6691368
}
]
}

can you suggest me the alternate method to send the total_count number to serialprint (TX)? may be some work around with javascript ...


Mmiscool wrote:It should be working with the new build.

The time should have nothing to do with a valid http request https needs correct time but there is currently no https support.


As for the time you can set up the time zone for india as follows

Note that the delay is needed after the time set up function.
Code: Select alltimesetup(5.5,0)
delay 2000
print time()
end
User avatar
By Mmiscool
#43668 I tested the following program. It worked.

Code: Select allprint wget(|graph.facebook.com/fql?q=SELECT%20total_count%20FROM%20link_stat%20WHERE%20url=%27https://www.facebook.com/AAPkaArvind/%27|)
end

Result was
Code: Select all{"data":[{"total_count":6691386}]}
Done...



Note however that because of the special characters the spaces and such i had to upload the bas file from the file manager rather than paste it in too the editor.