Jump to content

[+TUTORIAL+] Set up web notifications properly to receive e-mails


Tom

Recommended Posts

  • Replies 107
  • Created
  • Last Reply
  • 2 weeks later...
  • 2 weeks later...

Does anybody have the active unofficial server, which is running with "-webalarm" parameter? When we launch our server with this parameter, the server had random crashes (not exactly after each birth of baby). Notifications worked fine. Not sure in exact reason of server crashes, but the crashes stopped after removing this parameter.

P.S.: Our Windows server works fine even with "-servergamelog" parameter. May be some conflict between those parameters was the reason of crashes?

Link to comment
Share on other sites

On 21.8.2016 at 10:47 PM, AsH said:

Does anybody have the active unofficial server, which is running with "-webalarm" parameter? When we launch our server with this parameter, the server had random crashes (not exactly after each birth of baby). Notifications worked fine. Not sure in exact reason of server crashes, but the crashes stopped after removing this parameter.

P.S.: Our Windows server works fine even with "-servergamelog" parameter. May be some conflict between those parameters was the reason of crashes?

-webalarms do not cause any crashes for me. Running since its available.

- servergamelog is causing server crashes:

 

@Tom

Can you please report the bug with baby notifications on the center? The level information isn't contained.  So it isn't possible to create a website or something like that which can handle the notifications from the island and the center. The messages are not setup in the same way.

Would be really nice if wildcard can invest 5 minutes to fix that !

Reported it many times here in the forum and created a ticket for it. Unfortunately wildcard doesn't care about it.

 

 

Link to comment
Share on other sites

  • 2 months later...

 

Hey. I was also one crash with the option -webalarm, but not quite sure.

Help me set up notification. Does not work.

I download the script

added ARK started.sh -webalarm,

added AlarmPostCredentials.txt ShooterGame\Saved

Quote

 

added SteamKey steamauthOOP.class.php 

Quote

"Apikey" => "STEAMKEY", 

 

 added ARK-KEY script.php

Quote

 if ($key == "ARKkey")

 

It gives error message Invalid request

I checked back a few times. Fully customizable from the beginning. Does not help. Help, I incorrectly. The scenario is the same as in reference

 

script.php

<?php
if($_POST["key"] && $_POST["steamid"] && $_POST["notetitle"] && $_POST["message"]) 
 {
 $key = urldecode($_POST["key"]);
 $steamid = urldecode($_POST["steamid"]);
 $title = urldecode($_POST["notetitle"]);
 $message = urldecode($_POST["message"]);
 $date = date("d/m/Y h:i:sa");
 
 if ($key == "randomecodehere")
 {

$file = "report/data/".$steamid.".txt";
$handle = fopen($file, "a");
fwrite($handle, "$date, $title, $message"."\n");

 }
 else
 echo "Invalid key";
 } 
else
 echo "Invalid request";
?>

 

Link to comment
Share on other sites

hmmm... some ideas :

are you trying to test your script with GET method, by accessing it with your webbrowser at http://ark.myhost.org/script.php?key=ARKkey&steamid=test&notetitle=text&message=text ?

if not, can you try to exclude your notetitle output of your script conditions, to see if it's not caused by a non-accepted caracter in this variable ?

<?php
if($_POST["key"] && $_POST["steamid"]) 
 {
 $key = urldecode($_POST["key"]);
 $steamid = urldecode($_POST["steamid"]);
 $date = date("d/m/Y h:i:sa");
 
 if ($key == "ARKkey")
 {

$file = "report/data/".$steamid.".txt";
$handle = fopen($file, "a");
fwrite($handle, "$date, $steamid"."\n");

 }
 else
 echo "Invalid key";
 } 
else
 echo "Invalid request";
?>

 

Link to comment
Share on other sites

I am trying to understand what you mean. I tested the so - placed on the host script.php and create options on the server (as in the screenshot).

Then, I went to web http://ark.myhost.org/script.php page and get Invalid request

I tried to go http://ark.myhost.org/script.php?key=ARKkey&steamid=test¬etitle=text&message=text and got the same Invalid request

(Replaced ARKkey and steamid)

 

Tried to do the same thing with this (what offered MaeL)

12 hours ago, MaeL said:

<?php if($_POST["key"] && $_POST["steamid"])   {  $key = urldecode($_POST["key"]);  $steamid = urldecode($_POST["steamid"]);  $date = date("d/m/Y h:i:sa");    if ($key == "ARKkey")  { $file = "report/data/".$steamid.".txt"; $handle = fopen($file, "a"); fwrite($handle, "$date, $steamid"."\n");  }  else  echo "Invalid key";  }  else  echo "Invalid request"; ?>

Once again, that would not be confused:

1) Created script.php (the contents of the above, you suggested). Uploaded on ark.myhost.org (ark.myhost.org/script.php). Replaced in script.php ARKkey

2) Created AlarmPostCredentials.txt ShooterGame \ Saved on a server ARK

ARKkey
http://ark.myhost.org/script.php

3) Added -webalarm in the server startup.

checking

The situation is the same:

web http://ark.myhost.org/script.php and received Invalid request

http://ark.myhost.org/script.php?key=ARKkey&steamid=test¬etitle=text&message=text and got the same Invalid request

 

Link to comment
Share on other sites

4 hours ago, momai said:

Then, I went to web http://ark.myhost.org/script.php page and get Invalid request

I tried to go http://ark.myhost.org/script.php?key=ARKkey&steamid=test¬etitle=text&message=text and got the same Invalid request

(Replaced ARKkey and steamid)

 

Yea this will always send you an Invalid request response because it's a GET method (your vars will be like $_GET["var"] instead of $_POST["var"]) this is the reason why I asked you if you're trying your script like that, you must not do that!

your current script has no reason to not work if you use it correctly, so log into your server, be sure your character is in a tribe, set up an alarm tripwire on the ground and trigger it with a wild dinos, this must work

If you want test it without the game, you must do an additionnal script with a POST method form to send POST variables to your script.php

ex. 

<form method="POST" action="http://ark.myhost.org/script.php">
<input type="text" value="" name="key" placeholder="mykey">
<input type="text" value="" name="steamid" placeholder="steam ID">
<input type="text" value="" name="notetitle" placeholder="note title">
<input type="text" value="" name="message" placeholder="message">
<input type="submit">
</form>

 

Link to comment
Share on other sites

  • 4 weeks later...
  • 2 months later...

Bit of a bump here and sorry ^^ but if any of you guys are interested in the web alarm functionality - if you havent seen on the steam forums, I do host the function on my server - taking out all the hassle. You register your server, get an auth code and give your players the authcode for them to then register to receive notifications - this way an owner cant abuse the system to spam people - currently working on a bit of an admin dashboard too:

http://webalarm.danielhirst.info

 Some Screenshots links:

 

http://image.prntscr.com/image/c8b5d7a016e74f34aefe1b7ab632b9a6.png

http://image.prntscr.com/image/6ba5e46db6d3436fab85de413365a96a.png

http://image.prntscr.com/image/82ec6dde548b45309c307ba5246d521a.png

http://image.prntscr.com/image/d7fb4dc223fa4a54a56a2ceaecc052c6.png

Link to comment
Share on other sites

  • 4 weeks later...
  • 5 weeks later...

Mirrored from my steam thread:

Oh its been a few months now since ive been able to touch this but we do have updates!

Ark Web Alarm Updates

  • We now use HTTPS due to a new feature and well, who wouldnt?
  • NEW FEATURE: New Admin Dashboard! Allows you to see you existing Auth Code, remove/see subscribers, download your integration file and alter your password.
  • Was hoping to get some email customization released, however - due to the format of the notifications - this can be very limiting - may need to work up some Regex magic.
  • Ability to delete your server from the service, this will notify any subscribed people that your server has decided tostop using the service.

I have not allowed the addition of subscribers due to the possibility of using the service to spam peoples emails.

Screenshots

It is quite a simple dashboard but its a dashboard nonetheless

http://prntscr.com/ezilr6
http://prntscr.com/ezim6q
http://prntscr.com/ezimme
http://prntscr.com/ezios3

 

 

Link to comment
Share on other sites

  • 3 weeks later...
On 4/22/2017 at 10:57 AM, Hirsty said:

Mirrored from my steam thread:

Oh its been a few months now since ive been able to touch this but we do have updates!

Ark Web Alarm Updates

  • We now use HTTPS due to a new feature and well, who wouldnt?
  • NEW FEATURE: New Admin Dashboard! Allows you to see you existing Auth Code, remove/see subscribers, download your integration file and alter your password.
  • Was hoping to get some email customization released, however - due to the format of the notifications - this can be very limiting - may need to work up some Regex magic.
  • Ability to delete your server from the service, this will notify any subscribed people that your server has decided tostop using the service.

I have not allowed the addition of subscribers due to the possibility of using the service to spam peoples emails.

Screenshots

It is quite a simple dashboard but its a dashboard nonetheless

http://prntscr.com/ezilr6
http://prntscr.com/ezim6q
http://prntscr.com/ezimme
http://prntscr.com/ezios3

 

 

Do you know of anyway this could work for a PS4 server? it seems all these alarm notifications have only been worked out for PC and Xbox :\

Link to comment
Share on other sites

  • 2 months later...
On 4/22/2017 at 9:57 AM, Hirsty said:

Mirrored from my steam thread:

Oh its been a few months now since ive been able to touch this but we do have updates!

Ark Web Alarm Updates

  • We now use HTTPS due to a new feature and well, who wouldnt?
  • NEW FEATURE: New Admin Dashboard! Allows you to see you existing Auth Code, remove/see subscribers, download your integration file and alter your password.
  • Was hoping to get some email customization released, however - due to the format of the notifications - this can be very limiting - may need to work up some Regex magic.
  • Ability to delete your server from the service, this will notify any subscribed people that your server has decided tostop using the service.

I have not allowed the addition of subscribers due to the possibility of using the service to spam peoples emails.

Screenshots

It is quite a simple dashboard but its a dashboard nonetheless

http://prntscr.com/ezilr6
http://prntscr.com/ezim6q
http://prntscr.com/ezimme
http://prntscr.com/ezios3

 

 

Server having issues?
I was able to create a user, but the server part failed. After hitting SAVE the 'rotating' diamond never stopped. Also.. Im running 8 servers under the one IP... you arent allowing a port designation to distinguish between servers.

https://gyazo.com/8915e41245373e696d05517d09e31edf

Link to comment
Share on other sites

On 17/07/2017 at 2:33 AM, SMooreAce said:

Server having issues?
I was able to create a user, but the server part failed. After hitting SAVE the 'rotating' diamond never stopped. Also.. Im running 8 servers under the one IP... you arent allowing a port designation to distinguish between servers.

https://gyazo.com/8915e41245373e696d05517d09e31edf

Hi SMooreAce
If you're still interested in a hosted webalarm solution: we're offering free webalarms to e-mail on our free ARK community website. Your players can setup their webalarm by themselves via the website. The e-mail alert will display your server branding. You can check it out on www.premiumark.com. 
Feel free to send me a direct message or contact me via the helpdesk if you have any further questions.

 

Edit: added screenshot example

 

Example e-mail subject: [ALERT] Tripwire alarm! (Your Gameserver Name)

Screen Shot 2017-07-22 at 15.59.51.png

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.


×
×
  • Create New...