Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Météo openweathermap
#6
Salut Eric,

(01-26-2015, 09:17 PM)Eric64 Wrote: - A quoi sert le "gui_type" ? Est-il indispensable ?

Aucunement, si tu le supprimes, il sera ajouté automatiquement au prochain lancement de calaos_server, il vaut mieux ne pas le modifier, et si tu as un doute, tu peux le supprimer complètement.

(01-26-2015, 09:17 PM)Eric64 Wrote: - Les Températures min et max ne fonctionnent pas : elles indiquent la même valeur que la température... mais je pense que ça vient du site source car en allant dessus je trouve également les mêmes valeurs. Du coup elles n'ont aucun intérêt !

Même constat ici

(01-26-2015, 09:17 PM)Eric64 Wrote: - L'orientation du vent est indiquée en °... y a t'il moyen de transformer ca en texte ? ex : 270° = Ouest

Il faut que tu créé une nouvelle variable interne de type string,
puis tu peux utiliser un petit script lua pour faire ca. Tu le déclenches sur changement d'état de la valeur de l'orientation du vent, et le script peut ressembler à ca :
Code:
local wind_direction = calaos:getInputValue("input_XX")
if wind_direction >= 0 and wind_direction < 90  then
    -- Nord
    str = "Nord"
elseif wind_direction >= 270 and wind_direction < 0 then
    -- Nord
    str = "Nord"
elseif wind_direction >= 45 and wind_direction < 135 then
    -- Est
    str = "Est"
-- Je te laisse continuer :)
end
calaos:setOutputValue("output_XX", str)

(01-26-2015, 09:17 PM)Eric64 Wrote: Remarque :
Pour la description du temps ("nuageux"... aujourd'hui), je l'ai bien en affichage sur l'écran tactile mais il n'apparait pas sur l'appli mobile.

Ca semble être un bug .... Il faudrait le remonter, si ce n'est pas déjà fait Smile
a+
Nico
Calaos v2 sur Rpi et MeleA1000 | Eco Device | IPX800 | Karotz | 1Wire | Relais GPIO | Squeezebox
Reply


Messages In This Thread
Météo openweathermap - by Eric64 - 11-05-2014, 06:35 PM
RE: Météo openweathermap - by azerty - 11-05-2014, 07:11 PM
RE: Météo openweathermap - by captainigloo - 11-05-2014, 10:45 PM
RE: Météo openweathermap - by ActionProd - 01-02-2015, 03:23 PM
RE: Météo openweathermap - by Eric64 - 01-26-2015, 09:17 PM
RE: Météo openweathermap - by captainigloo - 01-26-2015, 09:44 PM
RE: Météo openweathermap - by Eric64 - 01-28-2015, 03:18 PM
RE: Météo openweathermap - by Eric64 - 01-30-2015, 11:32 PM
RE: Météo openweathermap - by Eric64 - 02-06-2015, 11:56 AM
RE: Météo openweathermap - by Eric64 - 03-11-2015, 05:03 PM
RE: Météo openweathermap - by raoulh - 03-12-2015, 09:43 AM
RE: Météo openweathermap - by Eric64 - 03-13-2015, 10:20 AM
RE: Météo openweathermap - by Eric64 - 03-23-2015, 07:24 PM
RE: Météo openweathermap - by raoulh - 03-23-2015, 08:46 PM
RE: Météo openweathermap - by Eric64 - 03-25-2015, 08:51 AM
RE: Météo openweathermap - by raoulh - 03-25-2015, 09:32 AM
RE: Météo openweathermap - by Eric64 - 03-25-2015, 02:28 PM
RE: Météo openweathermap - by Eric64 - 03-29-2015, 12:38 PM
RE: Météo openweathermap - by Eric64 - 05-15-2015, 02:50 PM
RE: Météo openweathermap - by Cyridle - 05-22-2015, 08:40 AM
RE: Météo openweathermap - by Eric64 - 05-26-2015, 10:14 PM
RE: Météo openweathermap - by Cyridle - 05-28-2015, 04:36 PM
RE: Météo openweathermap - by bernievds - 02-01-2017, 10:08 PM
RE: Météo openweathermap - by raoulh - 02-02-2017, 10:34 AM
RE: Météo openweathermap - by bernievds - 02-02-2017, 11:03 AM
RE: Météo openweathermap - by raoulh - 02-02-2017, 11:08 AM
RE: Météo openweathermap - by davidinfo - 02-05-2017, 01:58 AM
RE: Météo openweathermap - by bernievds - 02-13-2017, 07:39 PM
RE: Météo openweathermap - by davidinfo - 02-17-2017, 12:03 AM

Forum Jump:


Users browsing this thread: 2 Guest(s)