leo72:
Sì con FF si aggiorna
gia, io ci lavoro con ff. avresti per caso qualche idea sul perchè si blocchi il refresh?? ![]()
leo72:
Sì con FF si aggiorna
gia, io ci lavoro con ff. avresti per caso qualche idea sul perchè si blocchi il refresh?? ![]()
Pulsante per refresh manuale aggiunto ![]()
No.
Una volta si metteva il tag meta refresh all'interno dell'head.
//refresh ogni secondo
leo72:
No.
Una volta si metteva il tag meta refresh all'interno dell'head.
//refresh ogni secondo
infatti uso proprio quello per aggiornare la pagina ![]()
igor97:
mamma mia, per un attimmo ho temuto il peggioun inetrnale server error troppo duraturo;
Vabbò il sito è ora sistemato anche per internet explorer
@Menniti senza te non avrei capito che stavo programmando le pagine web in modo errato; ma è anche vero che ie non tollera nemmeno una virgola sbagliata
Ora per l'ultima volta fai una prova
Se non funziona ti giuro che vengo da te affinchè tumi possa uccidere![]()
come vieni da me? noooooo! funziona tutto, guarda accendo e spengo, ora accendo la luce di leo e spengo quella di pelletta e ora faccio viceversa, praticamente ho trasformato il mio studio in una discoteca ![]()
L'ho talmente tanto fatto surriscaldare che il server ora si è messo in stand-by ![]()
non saihe tragedia, stamattina mi sveglio un pezzo di acqua e miaccorgo che il ventilatore è spento e dico:boh vabbe....poi alzo lo sguardo nell'ingresso e vedo l lucedi emergenza accesa
noooo io ora sto scrivendo grazie ad una batteriacollegata al modem. ilserver presto tornerà a funzionare
ieri ero cotto e stracotto
ah dimenticavo
farò una cosa molto piu bella al posto delle immagini per vederelostato delleluci
.............
farò una diretta streaming 24/24h ![]()
igor97:
ah dimenticavofarò una cosa molto piu bella al posto delle immagini per vederelostato delleluci
.............
farò una diretta streaming 24/24h
usa vlc cmq sei su la buona strada mi piace tanto bravo, ti bacerei se fossi una bella bionda...
iz2rpn:
igor97:
ah dimenticavofarò una cosa molto piu bella al posto delle immagini per vederelostato delleluci
.............
farò una diretta streaming 24/24husa vlc cmq sei su la buona strada mi piace tanto bravo, ti bacerei se fossi una bella bionda...
calma eh xD
qualcuno sa che fina ha fatto lucadentella??
tutti hanno provato tranne lui ![]()
Puoi postare lo sketch, o almeno una parte che ne prendo spunto per provare qualcosina anch'io ??
Grazie
amario57:
Puoi postare lo sketch, o almeno una parte che ne prendo spunto per provare qualcosina anch'io ??
Grazie
ma tu che shield hai??
La ENC28J60 ![]()
amario57:
La ENC28J60
eh grazie questo l'avevo capito
![]()
io volevo sapere se la shield è questa:
![]()
Scusa il ritardo, non è una shield è questa:
http://www.robot-italy.com/product_info.php?cPath=13_44&products_id=1037
ma viene vista comunque nello stesso modo.
amario57:
Scusa il ritardo, non è una shield è questa:
http://www.robot-italy.com/product_info.php?cPath=13_44&products_id=1037
ma viene vista comunque nello stesso modo.
Vabbè il codice te lo posto lo stesso siamo in una comunità aperta
comunque se cerchi in questo topic nelle ultime pagine c'è un link di open electronic sulla libreria io ora sto a mare appena torno ti do tutto ![]()
amario57:
Scusa il ritardo, non è una shield è questa:
http://www.robot-italy.com/product_info.php?cPath=13_44&products_id=1037
ma viene vista comunque nello stesso modo.
non so perchè tutte le board con l'enc abbiano un funzionamento diversofatto sta che io utilizzo questa lireria:
http://www.open-electronics.org/wp-content/uploads/2012/06/EtherCard.zip
lo sketch di cui ho copiato praticamnte tutto è questo:
#include <EtherCard.h>
int sensorPin = A3;
int LEDpin = 3;
char TextBox1[10];
// web page buffer
byte Ethernet::buffer[1000];
BufferFiller bfill;
static byte mymac[] = { 0x74,0x69,0x69,0x2D,0x30,0x31 };
// ethernet interface ip address
static byte myip[] = { 192,168,0,107 };
// store html header in flash to save memory
char htmlHeader[] PROGMEM =
"HTTP/1.0 503 test page\r\n"
"Content-Type: text/html\r\n"
"Retry-After: 600\r\n\r\n"
"<html><head><title>Arduino test page</title></head>"
"<body style='background-color:rgb(255,255,102);'>"
"<h2 style='text-align: center;'><em><span style='color: rgb(153, 0, 0);'>This is a test page on my Arduino</span></em></h2>"
;
// ----------------------------------------------
// HTML page to display
static word homePage() {
bfill = ether.tcpOffset();
word sensorValue = analogRead(sensorPin);
char* ledstat;
if ( digitalRead(LEDpin) == HIGH ) {
ledstat = "On" ; }
else {
ledstat = "Off"; }
// This is html code with embedded variables
// put variables in the HTML area as $D for a number and $S for text then add the actual values after the comma at the end
//
// Notes "<meta http-equiv=refresh content=5>" tells the page to auto refresh every 5 seconds
// if you increase the size of the HTML code you may need to increase the buffer size (or it will stop working)
bfill.emit_p( PSTR (
"$F<p><em>" // $F = htmlheader in flash memory
"Reading of A0 input pin = $D
"
"The LED is $S
"
"Entered in text box = $S
"
"</em></p><div style='text-align: center;'><p><em>"
"<A HREF='?cmd=on'>Turn on</A>
"
"<A HREF='?cmd=off'>Turn off</A>
"
"<A HREF='?cmd=blank'>Refresh Page</A>
"
"<FORM>Test input box <input type=text name=boxa size=10> <input type=submit value=Enter> </form>
"
"<FORM METHOD=LINK ACTION='http://www.alanesq.com/arduino.htm'> <INPUT TYPE=submit VALUE='More Info Here'> </FORM>"
"</em></p></body></html>"
) , htmlHeader , sensorValue , ledstat , TextBox1 ) ;
return bfill.position();
}
void setup()
{
pinMode(LEDpin, OUTPUT);
Serial.begin(57600);
Serial.println("Arduino Ethernet Sketch Started.....");
ether.begin(sizeof Ethernet::buffer, mymac);
ether.staticSetup(myip);
}
void loop()
{
// check if anything has come in via ethernet
word len = ether.packetReceive();
word pos = ether.packetLoop(len);
if (pos) { // check if valid tcp data is received
// data received from ethernet
char* data = (char *) Ethernet::buffer + pos;
#if DEBUG // display incoming data
Serial.println("----------------");
Serial.println("data received:");
Serial.println(data);
Serial.println("----------------");
#endif
// "on" command received
if (strncmp( "GET /?cmd=on" , data , 12 ) == 0) {
digitalWrite(LEDpin, HIGH); // set the LED on
#if DEBUG
Serial.println("on received");
#endif
}
// "off" command received
if (strncmp( "GET /?cmd=off" , data , 13 ) == 0) {
digitalWrite(LEDpin, LOW); // set the LED on
#if DEBUG
Serial.println("off received");
#endif
}
// read data from text box
if (strncmp( "GET /?boxa=" , data , 11 ) == 0) {
Serial.print ( "text box input received - " );
if (ether.findKeyVal(data + 6, TextBox1 , sizeof TextBox1 , "boxa") > 0) {
// int value = atoi(TextBox1); // command to convert a string to number
#if DEBUG
Serial.print ( "input = " );
Serial.println ( TextBox1 );
#endif
}
}
ether.httpServerReply(homePage()); // send web page data
}
}
questo on sta nella libreria, pero in essa puoi trovare un webserver di esempio piu facile ma quello che ti ho scritto è mgliore.
se hai da chiedere sullo sketch dimmi pure ![]()
igor97:
comunque non so se potrei avere problemi con futura eletronica, se nel sito non c'è lo schema ci sarà pur un motivo
Il motivo probabilmente e' che lo schema lo si trova ovunque ]![]()
Prova a guardare la foto di Futura Elettronica:
Poi confrontala con quella di Open Electronics:
TROVA LE DIFFERENZE ]
]
]![]()
vabbe ma quello è un esempio..la libreria non sta xD
comunque hoguardato ]![]()
Vuoi dirmi che la scheda che ti e' arrivata e' diversa da quella foto ???