Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Master > Stable merge (9.8.29 | 2018.05.01) #833

Merged
merged 129 commits into from
Apr 30, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
129 commits
Select commit Hold shift + click to select a range
1fbcfa4
use one table for all feeds
mabi Aug 8, 2017
f8c36cb
Cassandra feed structure explanation
mabi Aug 8, 2017
1f8a9f6
addresses issue #706
mabi Aug 8, 2017
cfb6937
fixed variable name
mabi Aug 22, 2017
cfc2955
transport layer aes128cbc transport layer encryption implementation
glynhudson Sep 13, 2017
6d0f660
Merge remote-tracking branch 'origin/master' into aes128cbc-encryption
glynhudson Sep 14, 2017
a6cb9e6
Merge remote-tracking branch 'origin/master' into aes128cbc-encryption
glynhudson Sep 15, 2017
a6a1d32
Merge branch 'master' into task_module_support
cagabi Sep 20, 2017
87361d2
Fixed bug: when task processlist has an error now the error found pro…
cagabi Nov 7, 2017
8aa0ad7
Added ProcessError::ACCESS_FORBIDDEN
cagabi Nov 7, 2017
37a5ef6
Undo ProcessError::ACCESS_FORBIDDEN
cagabi Nov 7, 2017
6edb7a1
Added ProcessError::ACCESS_FORBIDDEN
cagabi Nov 9, 2017
8f3556e
Merge pull request #735 from carboncoop/task_module_support
TrystanLea Nov 13, 2017
e5f534f
Merge remote-tracking branch 'origin/master' into task_module_support
glynhudson Nov 15, 2017
68e1d40
Merge remote-tracking branch 'origin/master' into aes128cbc-encryption
glynhudson Nov 15, 2017
1910d52
Merge remote-tracking branch 'origin/master' into aes128cbc-encryption
glynhudson Nov 18, 2017
8eeda96
Merge remote-tracking branch 'origin/master' into task_module_support
glynhudson Nov 18, 2017
c97465d
Merge remote-tracking branch 'origin/master' into task_module_support
glynhudson Nov 18, 2017
50dfdf9
Merge remote-tracking branch 'origin/master' into aes128cbc-encryption
glynhudson Nov 18, 2017
61c3765
Merge remote-tracking branch 'origin/master' into aes128cbc-encryption
glynhudson Nov 20, 2017
0b62ffd
Merge remote-tracking branch 'origin/master' into task_module_support
glynhudson Nov 20, 2017
e6e3e11
Merge remote-tracking branch 'origin/master' into aes128cbc-encryption
glynhudson Nov 27, 2017
eabd806
Change get_data_DMY() to return all requested values
CDuffers Jan 10, 2018
813f935
rearranged increment setup with start of range setup
CDuffers Jan 10, 2018
eb27d84
Update to phpmqtt_input to accept JSON object
borpin Jan 13, 2018
9dd39e8
Update following Codacy run
borpin Jan 13, 2018
3ce2628
Update to allow the use of non numeric dates in the past
borpin Jan 13, 2018
5786cf0
Update process_api.php
thib66 Jan 23, 2018
7c394c2
Update process_ui.php
thib66 Jan 23, 2018
fe8f353
Update process_processlist.php
thib66 Jan 23, 2018
51d8a6c
Create process_messages.po
thib66 Jan 23, 2018
704a1e9
Add french localization
thib66 Jan 23, 2018
cbd2abc
email verification
glynhudson Jan 24, 2018
197652b
Merge remote-tracking branch 'upstream/master'
borpin Jan 28, 2018
87f7669
Merge branch 'borpin-master' into mqtt_input_json
glynhudson Feb 8, 2018
937db80
suggestion to use in-built processing rather than input methods
TrystanLea Feb 8, 2018
952cbbb
Merge pull request #788 from emoncms/TrystanLea-patch-1
TrystanLea Feb 8, 2018
ebfcd32
Wrong variable used
borpin Feb 8, 2018
902c363
Wrong variable used
borpin Feb 8, 2018
8becf43
Time key not case sensitive and additional logging
borpin Feb 8, 2018
9dba744
Merge pull request #792 from borpin/mqtt_input_json
TrystanLea Feb 9, 2018
9f4527c
Merge pull request #790 from borpin/patch-2
TrystanLea Feb 9, 2018
e9e486d
Merge pull request #773 from CDuffers/phpfina_tweak
TrystanLea Feb 9, 2018
39cfca2
Merge pull request #781 from thib66/process-localization2
TrystanLea Feb 9, 2018
b39d714
Merge pull request #708 from mabi/dev-cassandra
TrystanLea Feb 9, 2018
e01ca73
remove forced settings change
glynhudson Feb 9, 2018
5511377
Update readme.md
glynhudson Feb 10, 2018
30a336c
user registration fails if no default for 'tags' is set
rostwald Feb 12, 2018
5083750
Merge pull request #796 from rostwald/master
TrystanLea Feb 12, 2018
56ab10c
Update dependencies
Paul-Reed Feb 13, 2018
c400a14
Install php-redis via pecl to get v3.1.3 (#797)
Paul-Reed Feb 14, 2018
44756c6
Update messages.po
thib66 Feb 14, 2018
654427f
Add files via upload
thib66 Feb 14, 2018
e15b05b
Merge branch 'aes128cbc-encryption'
glynhudson Feb 15, 2018
6877397
Merge pull request #799 from thib66/admin-localization-update
glynhudson Feb 15, 2018
c2509a8
Input process list - tidy reordering arrows (#800)
CDuffers Feb 15, 2018
1805614
Merge remote-tracking branch 'origin/master' into mqtt_input_json
glynhudson Feb 16, 2018
591d560
clean up indentation
glynhudson Feb 16, 2018
06eab4c
indentation cleanup
glynhudson Feb 16, 2018
ccecb5a
Merge remote-tracking branch 'origin/master' into mqtt_input_json
glynhudson Feb 16, 2018
617ac47
include user, remove input methods
glynhudson Feb 16, 2018
58c52f9
Merge pull request #801 from emoncms/mqtt_input_json
TrystanLea Feb 16, 2018
6f5f995
Merge remote-tracking branch 'origin/stable'
glynhudson Feb 16, 2018
dae5db6
fix visibility of progress bar with French language (#802)
thib66 Feb 16, 2018
6eddfdd
Remove NTP dependency from build guide
Paul-Reed Feb 19, 2018
f777934
Fix test for emonpi (#808)
Paul-Reed Feb 20, 2018
61475c7
remove ntp, ufw from package list; (#807)
rostwald Feb 20, 2018
1688179
Multigraph localization (#793)
thib66 Feb 22, 2018
94540cd
Correct the var 'multigraph_id'
Paul-Reed Feb 24, 2018
d24b986
add option to hide a menu item if not active - and option is set in m…
glynhudson Feb 26, 2018
caf195d
Merge pull request #810 from Paul-Reed/master
glynhudson Feb 26, 2018
e908afc
Create process_langjs_builder.php
thib66 Mar 3, 2018
d7d56df
Create process_langjs.php
thib66 Mar 3, 2018
1d48fcc
Update process_ui.js
thib66 Mar 3, 2018
90aef9f
Update process_ui.php
thib66 Mar 3, 2018
c9569c6
Update process_messages.po
thib66 Mar 3, 2018
35f4e44
Add files via upload
thib66 Mar 3, 2018
9f90565
Update userlist_view.php
thib66 Mar 3, 2018
9d72b27
Update eventp_processlist.php
thib66 Mar 3, 2018
e3e8359
Update eventp_processlist.php
thib66 Mar 3, 2018
814951d
Update eventp_processlist.php
thib66 Mar 3, 2018
03283ae
Create eventp_messages.po
thib66 Mar 3, 2018
1b1dbb0
Add files via upload
thib66 Mar 3, 2018
8e8bc0d
Update schedule_processlist.php
thib66 Mar 3, 2018
7b6e170
Update schedule_menu.php
thib66 Mar 3, 2018
08342d8
Update schedule_view.php
thib66 Mar 3, 2018
e6ecd5f
Update schedule_api.php
thib66 Mar 3, 2018
27e837c
Add files via upload
thib66 Mar 4, 2018
082f4dc
Delete messages.mo
thib66 Mar 4, 2018
3cf35ca
Delete messages.po
thib66 Mar 4, 2018
c715f8a
Add files via upload
thib66 Mar 4, 2018
29bbca9
Delete messages.po
thib66 Mar 4, 2018
1bb84da
Delete messages.mo
thib66 Mar 4, 2018
d435630
Add files via upload
thib66 Mar 4, 2018
f18bae7
Delete messages.mo
thib66 Mar 4, 2018
4c00375
Delete messages.po
thib66 Mar 4, 2018
d96d16c
Add files via upload
thib66 Mar 4, 2018
4672186
Delete messages.mo
thib66 Mar 4, 2018
df49939
Delete messages.po
thib66 Mar 4, 2018
1592d0c
Merge remote-tracking branch 'emoncms_repo/master' into task_module_s…
cagabi Mar 15, 2018
09527ce
Merge branch 'task_module_support' of https://github.com/emoncms/emon…
cagabi Mar 15, 2018
51822b4
Include example of using Authorization: Bearer
borpin Mar 20, 2018
4607fa4
Check that task module is installed before trying to rewrite process …
cagabi Mar 22, 2018
2ffce60
Undo NB format
cagabi Mar 22, 2018
abcf203
Merge pull request #818 from carboncoop/task_module_support
TrystanLea Mar 22, 2018
ae887bd
Updates PHP sessions instructions for php7
waako Apr 2, 2018
1e0349d
Update rc.local
brucemiranda Apr 21, 2018
9032b66
Update readme.md
brucemiranda Apr 21, 2018
5cd9c9f
Merge pull request #827 from brucemiranda/patch-3
glynhudson Apr 21, 2018
12876ee
Merge pull request #825 from brucemiranda/patch-1
glynhudson Apr 21, 2018
3a9cf14
Update install.sh
brucemiranda Apr 22, 2018
46dd16a
Merge pull request #828 from brucemiranda/patch-4
glynhudson Apr 22, 2018
ea0e086
Added user id to logged error messages
pb66 Apr 24, 2018
23ba658
avoid divide by zero errors
pb66 Apr 25, 2018
b334505
Merge pull request #830 from emoncms/pb66-patch-3
TrystanLea Apr 26, 2018
b564c13
Re-implement fix for input page not loading
pb66 Apr 26, 2018
b0a2609
Merge pull request #831 from emoncms/pb66-patch-4
TrystanLea Apr 27, 2018
4f632e8
Merge pull request #829 from emoncms/pb66-patch-2
TrystanLea Apr 27, 2018
4a6235e
fixed get_name() in user model
cagabi Apr 30, 2018
6d1ea39
Merge pull request #832 from carboncoop/user_module__get_name
glynhudson Apr 30, 2018
32443bd
Merge pull request #819 from waako/patch-1
glynhudson Apr 30, 2018
4b1c2e2
Merge pull request #817 from borpin/patch-3
glynhudson Apr 30, 2018
a605453
Merge pull request #814 from thib66/schedule-localization-update
glynhudson Apr 30, 2018
c7a6821
Merge pull request #813 from thib66/eventp-localization
glynhudson Apr 30, 2018
3399375
Merge pull request #812 from thib66/user-locazization-update1
glynhudson Apr 30, 2018
81c1f10
Merge pull request #811 from thib66/process-localization
glynhudson Apr 30, 2018
876a698
Merge branch 'master' into email_verification
glynhudson Apr 30, 2018
4246e0d
Merge pull request #782 from emoncms/email_verification
glynhudson Apr 30, 2018
7e4c381
bump version 9.8.29 | 2018.05.01
glynhudson Apr 30, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ emoncms.log
.idea
.vagrant/
.env
.vscode/*

# Ignore all modules except core ones
Modules/*
Expand Down
2 changes: 1 addition & 1 deletion Lib/email.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ function check(){
}

function from($from) {
if ($this.check()) $this->message->setFrom($from);
if ($this->check()) $this->message->setFrom($from);
}

function to($to) {
Expand Down
28 changes: 18 additions & 10 deletions Modules/admin/admin_main_view.php
Original file line number Diff line number Diff line change
Expand Up @@ -302,26 +302,32 @@ function disk_list()
// Raspberry Pi
if ( @exec('ifconfig | grep b8:27:eb:') ) {
echo "<tr><td><b>Pi</b></td><td>CPU Temp</td><td>".number_format((int)@exec('cat /sys/class/thermal/thermal_zone0/temp')/1000, '2', '.', '')."&degC".chkRebootBtn()."</td></tr>\n";
}
if (glob('/boot/emonSD-*')) {
foreach (glob("/boot/emonSD-*") as $emonpiRelease) {
$emonpiRelease = str_replace("/boot/", '', $emonpiRelease);
}
if (isset($emonpiRelease)) {
echo "<tr><td class=\"subinfo\"></td><td>Release</td><td>".$emonpiRelease."</td></tr>\n";
echo "<tr><td class=\"subinfo\"></td><td>File-system</td><td>Set root file-system temporarily to read-write, (default read-only)<button id=\"fs-rw\" class=\"btn btn-danger btn-small pull-right\">"._('Read-Write')."</button> <button id=\"fs-ro\" class=\"btn btn-info btn-small pull-right\">"._('Read-Only')."</button></td></tr>\n";
}
}
}

// Ram information
if ($system['mem_info']) {
$sysRamUsed = $system['mem_info']['MemTotal'] - $system['mem_info']['MemFree'] - $system['mem_info']['Buffers'] - $system['mem_info']['Cached'];
$sysRamPercent = sprintf('%.2f',($sysRamUsed / $system['mem_info']['MemTotal']) * 100);
echo "<tr><td><b>Memory</b></td><td>RAM</td><td><div class='progress progress-info' style='margin-bottom: 0;'><div class='bar' style='width: ".$sysRamPercent."%;'>Used:&nbsp;".$sysRamPercent."%&nbsp;</div></div>";
$sysRamPercentRaw = ($sysRamUsed / $system['mem_info']['MemTotal']) * 100;
$sysRamPercent = sprintf('%.2f',$sysRamPercentRaw);
$sysRamPercentTable = number_format(round($sysRamPercentRaw, 2), 2, '.', '');
echo "<tr><td><b>Memory</b></td><td>RAM</td><td><div class='progress progress-info' style='margin-bottom: 0;'><div class='bar' style='width: ".$sysRamPercentTable."%;'>Used:&nbsp;".$sysRamPercent."%&nbsp;</div></div>";
echo "<b>Total:</b> ".formatSize($system['mem_info']['MemTotal'])."<b> Used:</b> ".formatSize($sysRamUsed)."<b> Free:</b> ".formatSize($system['mem_info']['MemTotal'] - $sysRamUsed)."</td></tr>\n";

if ($system['mem_info']['SwapTotal'] > 0) {
$sysSwapUsed = $system['mem_info']['SwapTotal'] - $system['mem_info']['SwapFree'];
$sysSwapPercent = sprintf('%.2f',($sysSwapUsed / $system['mem_info']['SwapTotal']) * 100);
echo "<tr><td class='subinfo'></td><td>Swap</td><td><div class='progress progress-info' style='margin-bottom: 0;'><div class='bar' style='width: ".$sysSwapPercent."%;'>Used:&nbsp;".$sysSwapPercent."%&nbsp;</div></div>";
$sysSwapPercentRaw = ($sysSwapUsed / $system['mem_info']['SwapTotal']) * 100;
$sysSwapPercent = sprintf('%.2f',$sysSwapPercentRaw);
$sysSwapPercentTable = number_format(round($sysSwapPercentRaw, 2), 2, '.', '');
echo "<tr><td class='subinfo'></td><td>Swap</td><td><div class='progress progress-info' style='margin-bottom: 0;'><div class='bar' style='width: ".$sysSwapPercentTable."%;'>Used:&nbsp;".$sysSwapPercent."%&nbsp;</div></div>";
echo "<b>Total:</b> ".formatSize($system['mem_info']['SwapTotal'])."<b> Used:</b> ".formatSize($sysSwapUsed)."<b> Free:</b> ".formatSize($system['mem_info']['SwapFree'])."</td></tr>\n";
}
}
Expand All @@ -331,11 +337,13 @@ function disk_list()
foreach($system['partitions'] as $fs) {
if (!$fs['Temporary']['bool'] && $fs['FileSystem']['text']!= "none" && $fs['FileSystem']['text']!= "udev") {
$diskFree = $fs['Free']['value'];
$diskTotal = $fs['Size']['value'];;
$diskUsed = $fs['Used']['value'];;
$diskPercent = sprintf('%.2f',($diskUsed / $diskTotal) * 100);

echo "<tr><td class='subinfo'></td><td>".$fs['Partition']['text']."</td><td><div class='progress progress-info' style='margin-bottom: 0;'><div class='bar' style='width: ".$diskPercent."%;'>Used:&nbsp;".$diskPercent."%&nbsp;</div></div>";
$diskTotal = $fs['Size']['value'];
$diskUsed = $fs['Used']['value'];
$diskPercentRaw = ($diskUsed / $diskTotal) * 100;
$diskPercent = sprintf('%.2f',$diskPercentRaw);
$diskPercentTable = number_format(round($diskPercentRaw, 2), 2, '.', '');

echo "<tr><td class='subinfo'></td><td>".$fs['Partition']['text']."</td><td><div class='progress progress-info' style='margin-bottom: 0;'><div class='bar' style='width: ".$diskPercentTable."%;'>Used:&nbsp;".$diskPercent."%&nbsp;</div></div>";
echo "<b>Total:</b> ".formatSize($diskTotal)."<b> Used:</b> ".formatSize($diskUsed)."<b> Free:</b> ".formatSize($diskFree)."</td></tr>\n";

}
Expand Down
Binary file modified Modules/admin/locale/fr_FR/LC_MESSAGES/messages.mo
Binary file not shown.
63 changes: 37 additions & 26 deletions Modules/admin/locale/fr_FR/LC_MESSAGES/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ msgid ""
msgstr ""
"Project-Id-Version: emoncms3\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-07-29 22:19+0200\n"
"PO-Revision-Date: 2017-07-29 22:20+0200\n"
"POT-Creation-Date: 2018-02-14 23:41+0100\n"
"PO-Revision-Date: 2018-02-14 23:45+0100\n"
"Last-Translator: Aymeric THIBAUT\n"
"Language-Team: Baptiste Gaultier (Télécom Bretagne) <baptiste."
"gaultier@telecom-bretagne.eu>\n"
Expand All @@ -14,7 +14,7 @@ msgstr ""
"X-Poedit-KeywordsList: _;gettext;gettext_noop\n"
"X-Poedit-Basepath: .\n"
"X-Poedit-SourceCharset: utf-8\n"
"X-Generator: Poedit 2.0.3\n"
"X-Generator: Poedit 2.0.6\n"
"X-Poedit-SearchPath-0: ../../..\n"

#: ../../../admin_controller.php:18
Expand Down Expand Up @@ -54,94 +54,102 @@ msgstr "Nom"
msgid "Status"
msgstr "Statut"

#: ../../../admin_main_view.php:97
#: ../../../admin_main_view.php:96
msgid "Shutdown"
msgstr "Éteindre"

#: ../../../admin_main_view.php:97
#: ../../../admin_main_view.php:96
msgid "Reboot"
msgstr "Redémarrer"

#: ../../../admin_main_view.php:100
#: ../../../admin_main_view.php:99
msgid "Shutdown Unsupported"
msgstr "Redémarrage non supporté"

#: ../../../admin_main_view.php:173 ../../../admin_menu.php:7
#: ../../../admin_main_view.php:171 ../../../admin_menu.php:7
msgid "Administration"
msgstr "Administration"

#: ../../../admin_main_view.php:177 ../../../admin_main_view.php:181
#: ../../../admin_main_view.php:175 ../../../admin_main_view.php:179
msgid "Users"
msgstr "Utilisateurs"

#: ../../../admin_main_view.php:178
#: ../../../admin_main_view.php:176
msgid "Administer user accounts"
msgstr "Administration des comptes utilisateurs"

#: ../../../admin_main_view.php:186 ../../../update_view.php:21
#: ../../../admin_main_view.php:184 ../../../update_view.php:21
msgid "Update database"
msgstr "Mise à jour de la base de données"

#: ../../../admin_main_view.php:187
#: ../../../admin_main_view.php:185
msgid ""
"Run this after updating emoncms, after installing a new module or to check "
"emoncms database status."
msgstr ""
"Lancez cette commande après une mise à jour de Emoncms, après l'installation "
"d'un nouveau module ou pour tester l'intégrité de la base de données."

#: ../../../admin_main_view.php:190
#: ../../../admin_main_view.php:188
msgid "Update & check"
msgstr "Mise à jour & Analyse"

#: ../../../admin_main_view.php:201
#: ../../../admin_main_view.php:199
msgid "Logger"
msgstr "Enregistreur"

#: ../../../admin_main_view.php:205
#: ../../../admin_main_view.php:203
msgid "View last entries on the logfile:"
msgstr "Vue des dernières entrées dans le fichier journal : "

#: ../../../admin_main_view.php:216
#: ../../../admin_main_view.php:214
msgid "Auto refresh"
msgstr "Rafraîchissement automatique"

#: ../../../admin_main_view.php:217 ../../../admin_main_view.php:246
#: ../../../admin_main_view.php:215 ../../../admin_main_view.php:245
msgid "Download Log"
msgstr "Télécharger le journal"

#: ../../../admin_main_view.php:237
#: ../../../admin_main_view.php:216 ../../../admin_main_view.php:262
msgid "Copy to clipboard"
msgstr "Copier dans presse-papier"

#: ../../../admin_main_view.php:236
msgid "Update"
msgstr "Mise à jour"

#: ../../../admin_main_view.php:244
#: ../../../admin_main_view.php:243
msgid "emonPi Update"
msgstr "Mise à jour emonPi"

#: ../../../admin_main_view.php:245
#: ../../../admin_main_view.php:244
msgid "emonBase Update"
msgstr "Mise à jour emonBase"

#: ../../../admin_main_view.php:261
msgid "Server Information"
msgstr "Informations serveur"

#: ../../../admin_main_view.php:263
msgid "Version"
msgstr "Version"

#: ../../../admin_main_view.php:289
#: ../../../admin_main_view.php:291
msgid "Flush"
msgstr ""

#: ../../../admin_main_view.php:309
#: ../../../admin_main_view.php:311
msgid "Read-Write"
msgstr "Lecture-Écriture"

#: ../../../admin_main_view.php:309
#: ../../../admin_main_view.php:311
msgid "Read-Only"
msgstr "Lecture-seulement"

#: ../../../admin_main_view.php:349
msgid "Client Information"
msgstr "Informations Client"

#: ../../../admin_main_view.php:380
msgid "Copy to clipboard: Ctrl+C, Enter"
msgstr "Copier dans le presse-papier : Ctrl+C, Entrée"

#: ../../../update_view.php:26
msgid "Apply changes"
msgstr "Appliquer les modifications"
Expand Down Expand Up @@ -170,5 +178,8 @@ msgstr "Nom utilisateur"
msgid "Email"
msgstr "Courriel"

#~ msgid "Version"
#~ msgstr "Version"

#~ msgid "Admin"
#~ msgstr "Admin"
4 changes: 2 additions & 2 deletions Modules/admin/userlist_view.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<script type="text/javascript" src="<?php echo $path; ?>Lib/tablejs/table.js"></script>
<script type="text/javascript" src="<?php echo $path; ?>Lib/tablejs/custom-table-fields.js"></script>

<h2>Users</h2>
<h2><?php echo _('Users'); ?></h2>
<div id="table"></div>

<script>
Expand Down Expand Up @@ -33,4 +33,4 @@

table.data = admin.userlist();
table.draw();
</script>
</script>
14 changes: 9 additions & 5 deletions Modules/eventp/eventp_processlist.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@
// no direct access
defined('EMONCMS_EXEC') or die('Restricted access');

$domain3 = "eventp_messages";
bindtextdomain($domain3, "Modules/eventp/locale");
bind_textdomain_codeset($domain3, 'UTF-8');

// Schedule Processlist Module
class Eventp_ProcessList
{
Expand Down Expand Up @@ -40,11 +44,11 @@ public function process_list()

// 0=>Name | 1=>Arg type | 2=>function | 3=>No. of datafields if creating feed | 4=>Datatype | 5=>Group | 6=>Engines | 'desc'=>Description | 'requireredis'=>true | 'nochange'=>true | 'helpurl'=>"http://..."

$list[] = array(_("If rate >=, skip next"), ProcessArg::VALUE, "ifRateGtEqualSkip", 0, DataType::UNDEFINED, "Conditional - Event", 'requireredis'=>true, 'nochange'=>true, 'desc'=>"<p>If value from last process has an absolute change from previous time it was calculated higher or equal to the specified value, processlist execution will skip the next process.</p>");
$list[] = array(_("If rate <, skip next"), ProcessArg::VALUE, "ifRateLtSkip", 0, DataType::UNDEFINED, "Conditional - Event", 'requireredis'=>true, 'nochange'=>true, 'desc'=>"<p>If value from last process has an absolute change from previous time it was calculated lower than the specified value, processlist execution will skip the next process.</p>");
$list[] = array(_("If Mute, skip next"), ProcessArg::VALUE, "ifMuteSkip", 0, DataType::UNDEFINED, "Conditional - Event", 'requireredis'=>true, 'nochange'=>true, 'desc'=>"<p>A time elapsed dependent condition, first time a processlist passes here the flow is unchanged. Next times the same processlist passes here, if the specified value time (in seconds) has not elapsed, flow will skip next process.</p>");
$list[] = array(_("If !Mute, skip next"), ProcessArg::VALUE, "ifNotMuteSkip", 0, DataType::UNDEFINED, "Conditional - Event", 'requireredis'=>true, 'nochange'=>true, 'desc'=>"<p>A time elapsed dependent condition, first time a processlist passes here the flow skips next. Next times the same processlist passes here, if the specified value time (in seconds) has elapsed, flow will skip next process.</p>");
$list[] = array(_("Send Email"), ProcessArg::TEXT, "sendEmail", 0, DataType::UNDEFINED, "Event", 'nochange'=>true, 'desc'=>"<p>Send an email to the user with the specified body.</p><p>Supported template tags to customize body: {type}, {id}, {key}, {name}, {node}, {time}, {value}</p><p>Example body text: At {time} your {type} from {node} with key {key} named {name} had value {value}.</p>");
$list[] = array(dgettext("eventp_messages","If rate >=, skip next"), ProcessArg::VALUE, "ifRateGtEqualSkip", 0, DataType::UNDEFINED, "Conditional - Event", 'requireredis'=>true, 'nochange'=>true, 'desc'=>"<p>".dgettext("eventp_messages","If value from last process has an absolute change from previous time it was calculated higher or equal to the specified value, processlist execution will skip the next process.")."</p>");
$list[] = array(dgettext("eventp_messages","If rate <, skip next"), ProcessArg::VALUE, "ifRateLtSkip", 0, DataType::UNDEFINED, "Conditional - Event", 'requireredis'=>true, 'nochange'=>true, 'desc'=>"<p>".dgettext("eventp_messages","If value from last process has an absolute change from previous time it was calculated lower than the specified value, processlist execution will skip the next process.")."</p>");
$list[] = array(dgettext("eventp_messages","If Mute, skip next"), ProcessArg::VALUE, "ifMuteSkip", 0, DataType::UNDEFINED, "Conditional - Event", 'requireredis'=>true, 'nochange'=>true, 'desc'=>"<p>".dgettext("eventp_messages","A time elapsed dependent condition, first time a processlist passes here the flow is unchanged. Next times the same processlist passes here, if the specified value time (in seconds) has not elapsed, flow will skip next process.")."</p>");
$list[] = array(dgettext("eventp_messages","If !Mute, skip next"), ProcessArg::VALUE, "ifNotMuteSkip", 0, DataType::UNDEFINED, "Conditional - Event", 'requireredis'=>true, 'nochange'=>true, 'desc'=>"<p>".dgettext("eventp_messages","A time elapsed dependent condition, first time a processlist passes here the flow skips next. Next times the same processlist passes here, if the specified value time (in seconds) has elapsed, flow will skip next process.")."</p>");
$list[] = array(dgettext("eventp_messages","Send Email"), ProcessArg::TEXT, "sendEmail", 0, DataType::UNDEFINED, "Event", 'nochange'=>true, 'desc'=>"<p>".dgettext("eventp_messages","Send an email to the user with the specified body.")."</p><p>".dgettext("eventp_messages","Supported template tags to customize body: {type}, {id}, {key}, {name}, {node}, {time}, {value}")."</p><p>".dgettext("eventp_messages","Example body text: At {time} your {type} from {node} with key {key} named {name} had value {value}.")."</p>");
return $list;
}

Expand Down
Binary file not shown.
Loading