Discussione: Reef Angel
Visualizza un messaggio singolo
Vecchio 11-04-2011, 15:37   #1
rita87
Ciclide
 
L'avatar di rita87
 
Registrato: Oct 2009
Città: Cosenza
Acquariofilo: Dolce/Marino
N° Acquari: 3
Età : 38
Messaggi: 1.991
Foto: 0 Albums: 0
Post "Grazie" / "Mi Piace"
Grazie (Dati):
Grazie (Ricev.):
Mi piace (Dati):
Mi piace (Ricev.):
Mentioned: 6 Post(s)
Feedback 0/0%

Annunci Mercatino: 0
Originariamente inviata da LukeLuke Visualizza il messaggio
Originariamente inviata da rita87 Visualizza il messaggio
Per vedere lo stato del RA tramite browser web c'è scritto sulla guida di inserire in loop, ReefAngel.StandardGUI();
mi da errore, qualcuno sa dirmi perchè?
rita... il ReefAngel.StandardGUI(); si utilizza con le librerie standard ... tu stai con quelle di Curt

allora sotto agli #include inserisci:

// Labels for the web banner
#include <avr/pgmspace.h>
prog_char id_label[] PROGMEM = "tuonomeregistratosuRA.com";
prog_char probe1_label[] PROGMEM = "Water";
prog_char probe2_label[] PROGMEM = "Not%20Used";
prog_char probe3_label[] PROGMEM = "Not%20Used";
prog_char relay1_label[] PROGMEM = "ATO";
prog_char relay2_label[] PROGMEM = "Actinic";
prog_char relay3_label[] PROGMEM = "Halide";
prog_char relay4_label[] PROGMEM = "Not%20Used";
prog_char relay5_label[] PROGMEM = "Not%20Used";
prog_char relay6_label[] PROGMEM = "Chiller";
prog_char relay7_label[] PROGMEM = "Heater";
prog_char relay8_label[] PROGMEM = "Not%20Used";
PROGMEM const char *webbanner_items[] = {
id_label, probe1_label, probe2_label, probe3_label, relay1_label, relay2_label,
relay3_label, relay4_label, relay5_label, relay6_label, relay7_label, relay8_label};

void setup()
{
// Initialize and start the web banner timer
ReefAngel.LoadWebBanner(pgm_read_word(&(webbanner_ items[0])), SIZE(webbanner_items));
ReefAngel.Timer[4].SetInterval(180); // set interval to 180 seconds
ReefAngel.Timer[4].Start();
}


void loop()
{
// Web Banner stuff
if(ReefAngel.Timer[4].IsTriggered())
{
ReefAngel.Timer[4].Start();
ReefAngel.WebBanner();
}
}


P.S. se utilizzate il mio script ritardoSkimmer dovete commentare la porta sempre ON nel PDE....

// Ports that are always on
//ReefAngel.Relay.On(Port8);
Mi viene troppo grande col webbanner... Così pensavo di utilizzare l'accesso tramite browser. Come poosso fare?
Ho provato a collegarmi col reef angel client, mi dice listening alle porte, ma non mi appare nulla sulla schermata




Questo è il codice preso dallo sketchbook di curt, l'ho aggiunto nel mio pde e ho fatto l'upload sul RA

// RALoggingPC.pde
//
// This version designed for v0.8.5 Beta 12 and later
//
// This includes sample code on how to use Dave's PC Client and send the XML
// data to his client

#include <ReefAngel_Features.h>
#include <ReefAngel_Globals.h>
#include <ReefAngel_Wifi.h>
#include <Wire.h>
#include <OneWire.h>
#include <Time.h>
#include <DS1307RTC.h>
#include <ReefAngel_EEPROM.h>
#include <ReefAngel_NokiaLCD.h>
#include <ReefAngel_ATO.h>
#include <ReefAngel_Joystick.h>
#include <ReefAngel_LED.h>
#include <ReefAngel_TempSensor.h>
#include <ReefAngel_Relay.h>
#include <ReefAngel_PWM.h>
#include <ReefAngel_Timer.h>
#include <ReefAngel_Memory.h>
#include <ReefAngel.h>

ReefAngel_TimerClass ParamTimer;

void setup()
{
ReefAngel.Init(); //Initialize controller

// Initialize and start the Parameter timer
ParamTimer.SetInterval(15); // set interval to 15 seconds
ParamTimer.Start();

// Ports that are always on
ReefAngel.Relay.On(Port1);
ReefAngel.Relay.On(Port8);
}

void loop()
{
ReefAngel.ShowInterface();

// Specific functions
ReefAngel.StandardLights(Port2);
ReefAngel.MHLights(Port3);
ReefAngel.Wavemaker1(Port4);
ReefAngel.Wavemaker2(Port5);
ReefAngel.StandardFan(Port6);
ReefAngel.StandardHeater(Port7);

if ( ParamTimer.IsTriggered() )
{
ParamTimer.Start();
ReefAngel.PCLogging();
}
}
__________________

Tecnica:plafoniera 32 led cree (3w per led), skimmer tunze nanodoc 9002, riscaldatore 100w, osmoregolatore DAC, 2 pompe di movimento hydor koralia nano 1600 l/h e risalita sicce 1500 l/h. Sump 20 litri + acquario 73,5 litri lordi. 15 kg di rocce vive Fiji premium.
rita87 non è in linea   Rispondi quotando
 
Page generated in 0,12040 seconds with 14 queries