soilscountToSenslog.yaml 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. settings:
  2. - SoilScount: # name of the fetcher module, e.g., Demo
  3. name: "Soil Scount"
  4. provider: "cz.senslog.connector.fetch.soilscount.ConnectorFetchSoilscountProvider"
  5. startDate: "now"
  6. # startDate: "2024-11-10T00:00:00"
  7. period: 1 # period in hours
  8. # OpenAPI Spec for login: https://www.soilscouts.fi/api/v1/
  9. # OpenAPI Spec for measurements: https://www.soilscouts.fi/api/v2/
  10. authUrl: "https://www.soilscouts.fi/api/v1/auth/login//" # keep the // (cos the bad implementation of the resource-side)
  11. refreshUrl: "https://www.soilscouts.fi/api/v1/auth/token/refresh//" # keep the //
  12. devicesUrl: "https://www.soilscouts.fi/api/v1/devices/"
  13. measurementsUrl: "https://www.soilscouts.fi/api/v2/measurements/"
  14. auth:
  15. "username": "mkepka@kgm.zcu.cz"
  16. "password": "Asense2023"
  17. allowedDevices: [1241, 1090, 947, 776, 1900, 207, 94, 120, 662, 1844, 1541, 1096, 451, 1491, 28779, 28780, 28781, 28782, 28783, 28784, 28785, 28786]
  18. - SenslogV1:
  19. name: "Senslog V1"
  20. provider: "cz.senslog.connector.push.rest.senslog.v1.SenslogV1ConnectorPushProvider"
  21. baseUrl: "https://sensor.lesprojekt.cz/senslog15"
  22. auth:
  23. username: "watchdog"
  24. password: "HAFhaf"
  25. connectors:
  26. - SoilScountSenslogV1:
  27. fetcher: "SoilScount"
  28. pusher: "SenslogV1"
  29. period: 1200 # 86_400 = 24h
  30. # startAt: "02:30:00" # hh:mm:ss # non-mandatory attribute
  31. initDelay: 5 # non-mandatory attribute