[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4762: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3897)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4764: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3897)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4765: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3897)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4766: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3897)
Toon onderwerp - webapp lokaal • nodo-domotica.nl

nodo-domotica.nl

webapp lokaal

Post hier vragen en ervaringen die betrekking hebben op het gebruik en configuratie van de WebApp

webapp lokaal

Berichtdoor bryan241 » 04 okt 2013, 14:59

Hier even een verbetering voor de lokale webapp.
Pas in de directory webservice/admin/ de file json_setup_connection.php aan.

zoek op www.nodo-domotica.nl of www.nodo-domotica.nl/webapp en verander deze in $WEBAPP_HOST

Na deze aanpassingen (2x) zou je een verbinding moeten kunnen maken naar de nodo vanaf je lokale webapp.
bryan241
 
Berichten: 172
Geregistreerd: 07 jan 2012, 14:14

Re: webapp lokaal

Berichtdoor ronaldsl » 06 okt 2013, 08:15

Er is geen json_setup_connection.php in de huidige release. Miss dat ik hierdoor geen login formulier zie?
ronaldsl
 
Berichten: 10
Geregistreerd: 06 okt 2013, 08:06

Re: webapp lokaal

Berichtdoor rjmulder » 06 okt 2013, 11:07

Ik ben hier ook mee bezig maar gaat ook niet zo als het moet.

Het bestand staat in webapp/webservice/admin

Bij het aanpassen van dat bestand krijg ik nog steeds de melding
Configuration warning!
We could not verify the Nodo configuration.
Is there an sd card in your Nodo?

In het telnet venster krijg ik de volgende meldingen:
Attention: Keyword [SendEvent] is outdated. Replaced by [EventSend].
Attention: Keyword [SendEvent] is outdated. Replaced by [EventSend].
Input=System; Unit=1; Event=Message 2: Invalid parameter in command.
Output=RF; Unit=0; Event=Message 2: Invalid parameter in command.
Attention: Keyword [SendEvent] is outdated. Replaced by [EventSend].
Attention: Keyword [SendEvent] is outdated. Replaced by [EventSend].

En dan doet die het nog niet :(
rjmulder
 
Berichten: 52
Geregistreerd: 29 jul 2013, 14:31

Re: webapp lokaal

Berichtdoor bryan241 » 09 okt 2013, 21:00

Hoi rjmulder,

Het is van belang wat status httphost als resultaat geeft.

Als je via een serial connectie verbonden bent met de nodo en het volgende commando uitvoert: status httphost
De uitkomst moet hetzelfde zijn als:
$WEBAPP_HOST/nodo.php
Deze variabele staat in webapp_settings.php.

Het gaat om het volgende stukje code:

if ($build >= 517) {
HTTPRequest("http://$nodo_ip/?event=output%20http,on");


$HTTPHost=get_phrase_after_string(trim_br(HTTPRequest("http://$nodo_ip/?event=status%20HTTPHost&key=$key")),'HTTPHost ');
$OutputHTTP=get_phrase_after_string(trim_br(HTTPRequest("http://$nodo_ip/?event=status%20Output%20HTTP&key=$key")),'Output HTTP,');

//Controle of de configuratie van de Nodo correct is
if ($HTTPHost == "$WEBAPP_HOST/nodo.php" && $OutputHTTP== "On" ) {
$response = "6";
HTTPRequest("http://$nodo_ip/?event=id%20$nodo_id;password%20$nodo_password;SettingsSave;reboot");
}
else {
$response = "7";
}

}

Als dit niet zo is, dan geeft dat jouw probleem.

@ronaldsl,

Gebruik je wel de laatste versie van de nodo en de webapp? Dan moet json_setup_connection.php in de directory webapp/webservice/admin staan.

Suc6
Laatst bijgewerkt door bryan241 op 14 okt 2013, 09:47, in totaal 3 keer bewerkt.
bryan241
 
Berichten: 172
Geregistreerd: 07 jan 2012, 14:14

Re: webapp lokaal

Berichtdoor rjmulder » 09 okt 2013, 21:12

Bedankt voor de uitleg, met een beetje geluk heb ik de nodo morgen weer werkend en ga ik het proberen.
Nu ligt die in onderdelen (connectoren verwijderd bv) voor het inbouwen in een behuizing.
rjmulder
 
Berichten: 52
Geregistreerd: 29 jul 2013, 14:31

Re: webapp lokaal

Berichtdoor bertb » 12 okt 2013, 14:30

Nodo Mega 2560 R619 met breadboard, Nodo Uno met breadboard
Tiny Kaku met breadboard, DS18B20, AlectoV1, DHT11
bertb
 
Berichten: 268
Geregistreerd: 14 sep 2013, 14:00
Woonplaats: Amsterdam

Re: webapp lokaal

Berichtdoor bryan241 » 12 okt 2013, 15:32

Bert,
Hoe staat de webapp_host in db_connections.php?
Dit moet jouw server zijn.
Probeer anders eerst je nodo te resetten.
bryan241
 
Berichten: 172
Geregistreerd: 07 jan 2012, 14:14

Re: webapp lokaal

Berichtdoor bertb » 12 okt 2013, 15:47

Ik neem aan dat je db_connection.php in /var/www/webapp/connections bedoeld?

Daar staat alleen:
<?php
$db_hostname = "localhost";
$database = "nododom_webappdb";
$db_username = ........;
$db_password = "........;
$db = mysql_pconnect($db_hostname, $db_username, $db_password) or trigger_error$
?>

... staat er natuurlijk niet echt :D
Nodo Mega 2560 R619 met breadboard, Nodo Uno met breadboard
Tiny Kaku met breadboard, DS18B20, AlectoV1, DHT11
bertb
 
Berichten: 268
Geregistreerd: 14 sep 2013, 14:00
Woonplaats: Amsterdam

Re: webapp lokaal

Berichtdoor bertb » 15 okt 2013, 18:27

In afwachting van het antwoord op de vraag hierboven nog een aanvullende vraag. Is de lokale webapp inmiddels aangepast aan Nodo r596?
Zo niet, dan heeft mijn eerdere vraag geen zin. :)

Groeten,
Bert
Nodo Mega 2560 R619 met breadboard, Nodo Uno met breadboard
Tiny Kaku met breadboard, DS18B20, AlectoV1, DHT11
bertb
 
Berichten: 268
Geregistreerd: 14 sep 2013, 14:00
Woonplaats: Amsterdam

Re: webapp lokaal

Berichtdoor bryan241 » 15 okt 2013, 19:33

Ik bedoelde eigenlijk $ WEBAPP_HOST in webapp_settings.php.
Deze website werkt met de laatste nodo software r596.
bryan241
 
Berichten: 172
Geregistreerd: 07 jan 2012, 14:14

Volgende

Keer terug naar Nodo WebApp

Wie is er online?

Gebruikers in dit forum: Geen geregistreerde gebruikers. en 21 gasten

cron