Please Note This forum exists for community support for the Mango product family and the Radix IoT Platform. Although Radix IoT employees participate in this forum from time to time, there is no guarantee of a response to anything posted here, nor can Radix IoT, LLC guarantee the accuracy of any information expressed or conveyed. Specific project questions from customers with active support contracts are asked to send requests to support@radixiot.com.
Weather forecast
-
Hello all,
I'm trying to use regular expressions to pull the weather forecast out of the yahoo weather api, link:
https://query.yahooapis.com/v1/public/yql?q=select * from weather.forecast where woeid in (select woeid from geo.places(1) where text%3D"oakbank%2Cmb")&format=json&env=store%3A%2F%2Fdatatables.org%2FalltableswithkeysUsing regex testers, I can pull out the proper data, the high for the next day, using:
forecast.*?\[.*?{.*?{.*?high.*?\"(\d+)however when it's put into mango, it gives this error:
Illegal repetition near index 15 forecast.?[.?{.?{.?high.*?"(\d+) ^has anyone else been able to properly pull forecast weather or see an issue with my regex?
Thanks,
Stephen -
Hi Stephen,
I edited your post because text between asterisks is italic.
The problem is probably caused by your open brace not being escaped. Can you try it with a \ before the {?
forecast.*?\[.*?\{.*?\{.*?high.*?\"(\d+) -
Ya that worked,
Thank you
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login