[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)
nodo-domotica.nl • Toon onderwerp - webapp lokaal - Afdrukweergave
nodo-domotica.nl
http://www.nodo-domotica.nl/forum/

webapp lokaal
http://www.nodo-domotica.nl/forum/viewtopic.php?f=36&t=1712
Pagina 1 van 2  Volgende »
Auteur:  bryan241 [ 04 okt 2013, 14:59 ]
Titel:  webapp lokaal

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.
Auteur:  ronaldsl [ 06 okt 2013, 08:15 ]
Titel:  Re: webapp lokaal

Er is geen json_setup_connection.php in de huidige release. Miss dat ik hierdoor geen login formulier zie?
Auteur:  rjmulder [ 06 okt 2013, 11:07 ]
Titel:  Re: webapp lokaal

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 :(
Auteur:  bryan241 [ 09 okt 2013, 21:00 ]
Titel:  Re: webapp lokaal

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
Auteur:  rjmulder [ 09 okt 2013, 21:12 ]
Titel:  Re: webapp lokaal

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.
Auteur:  bertb [ 12 okt 2013, 14:30 ]
Titel:  Re: webapp lokaal

Auteur:  bryan241 [ 12 okt 2013, 15:32 ]
Titel:  Re: webapp lokaal

Bert,
Hoe staat de webapp_host in db_connections.php?
Dit moet jouw server zijn.
Probeer anders eerst je nodo te resetten.
Auteur:  bertb [ 12 okt 2013, 15:47 ]
Titel:  Re: webapp lokaal

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
Auteur:  bertb [ 15 okt 2013, 18:27 ]
Titel:  Re: webapp lokaal

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
Auteur:  bryan241 [ 15 okt 2013, 19:33 ]
Titel:  Re: webapp lokaal

Ik bedoelde eigenlijk $ WEBAPP_HOST in webapp_settings.php.
Deze website werkt met de laatste nodo software r596.
Pagina 1 van 2 Alle tijden zijn GMT + 1 uur