jingzhi Posted March 23, 2015 Posted March 23, 2015 Hey guys! So I want to retrieve the world time from internet, and then show them in my server, is this possible? I have checked on google but I got confused, any pro on lua, please help, thank you very much!
jingzhi Posted March 23, 2015 Author Posted March 23, 2015 use fetchRemote Hey Ty very much but can this function retrieve specific string from the webpage or only download some file?
darhal Posted March 23, 2015 Posted March 23, 2015 use fetchRemote Hey Ty very much but can this function retrieve specific string from the webpage or only download some file? If you need to get a string then use callRemote you can call the page that conation the real time and then return the result to LUA script using the callBack function see the wiki example it may help you
jingzhi Posted March 23, 2015 Author Posted March 23, 2015 use fetchRemote Hey Ty very much but can this function retrieve specific string from the webpage or only download some file? If you need to get a string then use callRemote you can call the page that conation the real time and then return the result to LUA script using the callBack function see the wiki example it may help you After reading the wiki I'm still kinda confused, can you teach me more? Here is what I want to do, for example this page here http://www.weather.com/weather/today/l/SPMD0627:1:SP I want to get the temperature string from this web, how should I do it? Again, thank you very much!
darhal Posted March 23, 2015 Posted March 23, 2015 Ok here is an example that shows you how you can get weather from website https://forum.multitheftauto.com/viewto ... 18#p773080
jingzhi Posted March 23, 2015 Author Posted March 23, 2015 Ok here is an example that shows you how you can get weather from website https://forum.multitheftauto.com/viewto ... 18#p773080 I see how it works, even though I cant solve this problem now, but thank you.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now