Hi I thought this would be easy and I can usually work my way through it by reading all the posts here, but this has me stumped for the past couple of days
I am scraping websites for current exchange rates of crypto currencies. I am successful at extracting just the current amounts from the sites and they are assigned as devicestrings using the webscraper app I have had when it first come out.
How do I convert this devicestring to a devicevalue in a script so I can perform some simple math functions and update virtual devices with my results?
I do have what appears to be a true number as the device string doesn't appear to have any html tags embedded in it.
Secondly, is it possible to convert a fraction of an integer to a device value to use in my equations? Some of the currencies are only .05 and .10 cents each.
Thanks for your help
Will
I am scraping websites for current exchange rates of crypto currencies. I am successful at extracting just the current amounts from the sites and they are assigned as devicestrings using the webscraper app I have had when it first come out.
How do I convert this devicestring to a devicevalue in a script so I can perform some simple math functions and update virtual devices with my results?
I do have what appears to be a true number as the device string doesn't appear to have any html tags embedded in it.
Secondly, is it possible to convert a fraction of an integer to a device value to use in my equations? Some of the currencies are only .05 and .10 cents each.
Thanks for your help
Will
Comment