1b.app
Link copied -

weather forecast

Интересует интеграция с сервисом которого нет в списке решений?
Вы можете создать топик и там описать необходимый функционал - партнеры-интеграторы дадут оценку для разработки функционала. Создать топик на форуме

Answers:


Is it possible to integrate, for example, with gismeteo: https://www.gismeteo.ua/api/ ?
14.01.2021, 11:06
Original comment available on version: ru

Integration is possible with everyone who has an api - even with your car, if it has an api))
What exactly do you want to get from the integration and in what form?
14.01.2021, 11:22
Original comment available on version: ru

you need to receive a forecast of temperature and precipitation 2 times a day for the next 12 hours
then, if the forecast for precipitation is above a certain level and the temperature is below a certain level, send a notification to the responsible employee
14.01.2021, 11:29
Original comment available on version: ru

You can make an action once an hour, which will be launched at the selected hours, make a request for the weather for a specific city or geographic coordinates for the current date + X hours and set a task in the selected bp, status and with the specified comment if the temperature is lower than specified in the settings. The development of the action will take 6 hours.
14.01.2021, 11:41
Original comment available on version: ru


Bodyako Dmitry
dev wrote:
with the specified comment if the temperature is lower than specified in the settings

and if the temperature above bp is not created at all?
14.01.2021, 12:10
Original comment available on version: ru


Chubenko Mikhail
Client wrote:
precipitation above a certain level and temperature below a certain level

as far as I understood from your comment, you are only interested in the temperature below and the precipitation above. If you need some kind of range, like +10 to -10, and if the temperature is outside the specified range, then of course this can be done. The score will not change.
14.01.2021, 12:14
Original comment available on version: ru


Bodyako Dmitry
dev wrote:
as far as I understood from your comment, you are only interested in the temperature below and the precipitation above.

everything is right. bp should be created only if the pace is lower and precipitation is higher. and another type of precipitation is snow
14.01.2021, 13:11
Original comment available on version: ru

Are you sure you need AND. I think that you need to create a task if the precipitation is higher OR the temperature is lower OR there will be snow. Those. if one of the 3 conditions is met. Or do you still need the simultaneous fulfillment of all 3 conditions?
14.01.2021, 13:25
Original comment available on version: ru


Bodyako Dmitry
dev wrote:
Are you sure you need AND. I think that you need to create a task if the precipitation is higher OR the temperature is lower OR there will be snow. Those. if one of the 3 conditions is met. Or do you still need the simultaneous fulfillment of all 3 conditions?

I guess all three. the meaning of the task is to inform the participants in the snow removal process. for example, at positive temperatures and a small amount of snow, you don’t need to remove it at all, but if there is more snow, then you already need it. If there is a lot of snow and low temperatures, it is necessary to use such a number of special equipment, and if there is not much, then it can only get by with people, etc. just the action itself will be used multiple times with different settings
14.01.2021, 14:01
Original comment available on version: ru

Let's then do this, the settings will be in action:
temperature range
precipitation interval
tick "snow"
choice of condition: 1 requirement is fulfilled, 2 or 3 at once.
In total, you choose a temperature from -1 to -50, precipitation from 10 to 100 mm and a check mark for snow + 3 conditions are met. If all these 3 conditions are met, then the task is set for the manager. So you can independently control the conditions for setting the task and their number. I emphasize that it will be necessary to indicate exactly the interval in which there should be an indicator for precipitation and temperature. Those. if you need to trigger at temperatures below -10 degrees, then you will need to specify the interval -10 -50
will take 7 hours.
14.01.2021, 14:35
Original comment available on version: ru

spacing is correct
Have you looked at gismeteo api? They can give the average temperature and the cumulative rainfall over the next 12 hours there?
14.01.2021, 15:07
Original comment available on version: ru

they give not for the next 12 hours, but for several days with an interval of 3, 6 or 24 hours. Those. we will request an interval of 3h and watch the weather for it. There is not an average but specific numbers that will be at a specific time. Those. if the request is made now, then we will most likely give data for 18:00, 21:00, 00:00, etc., we will check all this time according to your conditions and set the task if the conditions for some of the times are met
14.01.2021, 15:37
Original comment available on version: ru


Bodyako Dmitry
dev wrote:
we will check all this time according to your conditions and set a task if the conditions for some of the times are met

Precipitation requires a cumulative level for 12 hours. They can also fall evenly. and all this is necessary in order to plan actions for tomorrow morning tonight. sometimes in the morning for the evening of the same day. during the day, except for weekends, we can not do anything
14.01.2021, 15:56
Original comment available on version: ru

https://prnt.sc/wngj9f the api does not say exactly when it is precipitation, from the previous period or for the whole day and before the specified time. It seems to me that the whole day before the specified time, as this is more logical. With real requests during the completion it will be more clear and we will be able to adjust the action so that it counts as you need
14.01.2021, 16:17
Original comment available on version: ru

judging by the info on the site, this is exactly for the interval (3 hours)
14.01.2021, 16:22
Original comment available on version: ru

then we will do this:
The action starts conditionally at 18:00 and looks at the 12 o'clock forecast. We take all the intervals of 3/6 hours that are included in the period and add the precipitation and compare it with the final precipitation already indicated in the settings.
14.01.2021, 16:27
Original comment available on version: ru


you will be billed for 7 hours of revision in the near future.
14.01.2021, 17:23
Original comment available on version: ru

Please join the conversation. If you have something to say - please write a comment. You will need a mobile phone and an SMS code for identification to enter. Log in and comment