<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom" ><generator uri="https://jekyllrb.com/" version="3.7.4">Jekyll</generator><link href="http://projects.filips.si/feed.xml" rel="self" type="application/atom+xml" /><link href="http://projects.filips.si/" rel="alternate" type="text/html" /><updated>2019-01-01T18:01:00+01:00</updated><id>http://projects.filips.si/feed.xml</id><title type="html">Filipovi GitHub projekti</title><subtitle>Spletna stran s Filipovimi GitHub projekti.</subtitle><entry><title type="html">MonologPHPMailer</title><link href="http://projects.filips.si/2019/01/01/monolog-phpmailer" rel="alternate" type="text/html" title="MonologPHPMailer" /><published>2019-01-01T17:58:50+01:00</published><updated>2019-01-01T17:58:50+01:00</updated><id>http://projects.filips.si/2019/01/01/monolog-phpmailer</id><content type="html" xml:base="http://projects.filips.si/2019/01/01/monolog-phpmailer">&lt;p&gt;MonologPHPMailer je &lt;a href=&quot;https://github.com/PHPMailer/PHPMailer/&quot;&gt;PHPMailer&lt;/a&gt; odjemalec za &lt;a href=&quot;https://github.com/Seldaek/monolog/&quot;&gt;Monolog&lt;/a&gt;. Omogoča pošiljanje dnevniških datotek na e-pošto z PHPMailer.&lt;/p&gt;

&lt;!--more--&gt;

&lt;h2 id=&quot;namestitev&quot;&gt;Namestitev&lt;/h2&gt;

&lt;h3 id=&quot;zahteve&quot;&gt;Zahteve&lt;/h3&gt;

&lt;p&gt;MonologPHPMailer zahteva vsaj &lt;em&gt;&lt;a href=&quot;https://php.net/&quot;&gt;PHP&lt;/a&gt; 5.5.0&lt;/em&gt;, &lt;em&gt;&lt;a href=&quot;https://github.com/Seldaek/monolog/&quot;&gt;Monolog&lt;/a&gt; 1.x ali 2.x&lt;/em&gt; in &lt;em&gt;&lt;a href=&quot;https://github.com/PHPMailer/PHPMailer/&quot;&gt;PHPMailer&lt;/a&gt; 6.x&lt;/em&gt;.&lt;/p&gt;

&lt;h3 id=&quot;s-programom-composer&quot;&gt;S programom Composer&lt;/h3&gt;

&lt;p&gt;Priporočen način za nameščanje programa je s programom &lt;a href=&quot;https://getcomposer.org/&quot;&gt;Composer&lt;/a&gt;, upravljalcem odvisnosti za PHP.&lt;/p&gt;

&lt;p&gt;Dodajte &lt;code class=&quot;highlighter-rouge&quot;&gt;filips123/monolog-phpmailer&lt;/code&gt; v projektne odvisnosti v &lt;code class=&quot;highlighter-rouge&quot;&gt;composer.json&lt;/code&gt;. Namestila se bosta tudi Monolog in PHPMailer, vendar je priporočljivo, da ju dodate ročno.&lt;/p&gt;

&lt;div class=&quot;language-json highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
    &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;require&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
        &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;monolog/monolog&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;^1.0&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
        &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;phpmailer/phpmailer&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;^6.0&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
        &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;filips123/monolog-phpmailer&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;^1.0&quot;&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
    &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Ne pozabite zagnati &lt;code class=&quot;highlighter-rouge&quot;&gt;composer install&lt;/code&gt; in dodati &lt;code class=&quot;highlighter-rouge&quot;&gt;require 'vendor/autoload.php';&lt;/code&gt; v vašo program.&lt;/p&gt;

&lt;h3 id=&quot;brez-programa-composer&quot;&gt;Brez programa Composer&lt;/h3&gt;

&lt;p&gt;Lahko tudi prenesete vse datoteke v mapi &lt;a href=&quot;https://github.com/filips123/MonologPHPMailer/tree/master/src&quot;&gt;&lt;code class=&quot;highlighter-rouge&quot;&gt;src&lt;/code&gt;&lt;/a&gt; iz GitHuba in jih nato ročno vključite v svoj program. Prav tako morate ročno namestiti Monolog in PHPMailer.&lt;/p&gt;

&lt;h2 id=&quot;uporaba&quot;&gt;Uporaba&lt;/h2&gt;

&lt;p&gt;V svoj zapisovalec morali dodati odjemalec &lt;code class=&quot;highlighter-rouge&quot;&gt;MonologPHPMailer\PHPMailerHandler&lt;/code&gt;. Njegov prvi argument mora biti instanca PHPMailer.&lt;/p&gt;

&lt;h2 id=&quot;primer&quot;&gt;Primer&lt;/h2&gt;

&lt;div class=&quot;language-php highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;cp&quot;&gt;&amp;lt;?php&lt;/span&gt;

&lt;span class=&quot;k&quot;&gt;use&lt;/span&gt; &lt;span class=&quot;nx&quot;&gt;MonologPHPMailer\PHPMailerHandler&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;

&lt;span class=&quot;k&quot;&gt;use&lt;/span&gt; &lt;span class=&quot;nx&quot;&gt;Monolog\Formatter\HtmlFormatter&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;k&quot;&gt;use&lt;/span&gt; &lt;span class=&quot;nx&quot;&gt;Monolog\Logger&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;k&quot;&gt;use&lt;/span&gt; &lt;span class=&quot;nx&quot;&gt;Monolog\Processor\IntrospectionProcessor&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;k&quot;&gt;use&lt;/span&gt; &lt;span class=&quot;nx&quot;&gt;Monolog\Processor\MemoryUsageProcessor&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;k&quot;&gt;use&lt;/span&gt; &lt;span class=&quot;nx&quot;&gt;Monolog\Processor\WebProcessor&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;

&lt;span class=&quot;k&quot;&gt;use&lt;/span&gt; &lt;span class=&quot;nx&quot;&gt;PHPMailer\PHPMailer\PHPMailer&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;

&lt;span class=&quot;k&quot;&gt;require&lt;/span&gt; &lt;span class=&quot;nx&quot;&gt;__DIR__&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;.&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;'/vendor/autoload.php'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;

&lt;span class=&quot;nv&quot;&gt;$mailer&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;new&lt;/span&gt; &lt;span class=&quot;nx&quot;&gt;PHPMailer&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;kc&quot;&gt;true&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;);&lt;/span&gt;
&lt;span class=&quot;nv&quot;&gt;$logger&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;new&lt;/span&gt; &lt;span class=&quot;nx&quot;&gt;Logger&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;'logger'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;);&lt;/span&gt;

&lt;span class=&quot;nv&quot;&gt;$mailer&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;na&quot;&gt;isSMTP&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;();&lt;/span&gt;
&lt;span class=&quot;nv&quot;&gt;$mailer&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;na&quot;&gt;Host&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;'smtp.example.com'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;nv&quot;&gt;$mailer&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;na&quot;&gt;SMTPAuth&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;kc&quot;&gt;true&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;nv&quot;&gt;$mailer&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;na&quot;&gt;Username&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;'server@example.com'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;nv&quot;&gt;$mailer&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;na&quot;&gt;Password&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;'password'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;

&lt;span class=&quot;nv&quot;&gt;$mailer&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;na&quot;&gt;setFrom&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;'server@example.com'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;'Logging Server'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;);&lt;/span&gt;
&lt;span class=&quot;nv&quot;&gt;$mailer&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;na&quot;&gt;addAddress&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;'user@example.com'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;'Your Name'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;);&lt;/span&gt;

&lt;span class=&quot;nv&quot;&gt;$logger&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;na&quot;&gt;pushProcessor&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;k&quot;&gt;new&lt;/span&gt; &lt;span class=&quot;nx&quot;&gt;IntrospectionProcessor&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;);&lt;/span&gt;
&lt;span class=&quot;nv&quot;&gt;$logger&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;na&quot;&gt;pushProcessor&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;k&quot;&gt;new&lt;/span&gt; &lt;span class=&quot;nx&quot;&gt;MemoryUsageProcessor&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;);&lt;/span&gt;
&lt;span class=&quot;nv&quot;&gt;$logger&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;na&quot;&gt;pushProcessor&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;k&quot;&gt;new&lt;/span&gt; &lt;span class=&quot;nx&quot;&gt;WebProcessor&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;);&lt;/span&gt;

&lt;span class=&quot;nv&quot;&gt;$handler&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;new&lt;/span&gt; &lt;span class=&quot;nx&quot;&gt;PHPMailerHandler&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;nv&quot;&gt;$mailer&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;);&lt;/span&gt;
&lt;span class=&quot;nv&quot;&gt;$handler&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;na&quot;&gt;setFormatter&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;k&quot;&gt;new&lt;/span&gt; &lt;span class=&quot;nx&quot;&gt;HtmlFormatter&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;);&lt;/span&gt;

&lt;span class=&quot;nv&quot;&gt;$logger&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;na&quot;&gt;pushHandler&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;nv&quot;&gt;$handler&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;);&lt;/span&gt;

&lt;span class=&quot;nv&quot;&gt;$logger&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;na&quot;&gt;error&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;'Error!'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;);&lt;/span&gt;
&lt;span class=&quot;nv&quot;&gt;$logger&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;na&quot;&gt;alert&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;'Something went wrong!'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;);&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h2 id=&quot;različice&quot;&gt;Različice&lt;/h2&gt;

&lt;p&gt;Program za različice uporablja &lt;a href=&quot;https://semver.org/&quot;&gt;SemVer&lt;/a&gt;. Za ogled objavljenih različic obiščite &lt;a href=&quot;https://github.com/filips123/MonologPHPMailer/tags/&quot;&gt;oznake na skladišču&lt;/a&gt;.&lt;/p&gt;

&lt;h2 id=&quot;licenca&quot;&gt;Licenca&lt;/h2&gt;

&lt;p&gt;Program je zaščiten z licenco &lt;a href=&quot;https://choosealicense.com/licenses/mit/&quot;&gt;MIT&lt;/a&gt;. Za podrobnosti glejte datoteko &lt;a href=&quot;https://github.com/filips123/MonologPHPMailer/blob/master/LICENSE&quot;&gt;LICENSE&lt;/a&gt;.&lt;/p&gt;</content><author><name></name></author><category term="beleženje" /><category term="e-pošta" /><category term="monolog" /><category term="phpmailer" /><summary type="html">MonologPHPMailer je PHPMailer odjemalec za Monolog. Omogoča pošiljanje dnevniških datotek na e-pošto z PHPMailer.</summary></entry><entry><title type="html">PHP Config Writer v2</title><link href="http://projects.filips.si/2018/11/19/php-config-writer-v2" rel="alternate" type="text/html" title="PHP Config Writer v2" /><published>2018-11-19T19:16:32+01:00</published><updated>2018-11-19T19:16:32+01:00</updated><id>http://projects.filips.si/2018/11/19/php-config-writer-v2</id><content type="html" xml:base="http://projects.filips.si/2018/11/19/php-config-writer-v2">&lt;p&gt;PHP Config Writer je PHP knjižnjica za enostavno zapisovanje konfiguracijskih datotek.&lt;/p&gt;

&lt;!--more--&gt;

&lt;h2 id=&quot;namestitev&quot;&gt;Namestitev&lt;/h2&gt;

&lt;h3 id=&quot;zahteve&quot;&gt;Zahteve&lt;/h3&gt;

&lt;p&gt;PHP Config Writer potrebuje  vsaj &lt;em&gt;&lt;a href=&quot;https://php.net/&quot;&gt;PHP&lt;/a&gt; 5.5.9&lt;/em&gt;.
Za shranjevanje konfiguracijske datoteke mora imeti spletni strežnik zapisovalni dostop do mape s konfiguracijsko datoteko.&lt;/p&gt;

&lt;h3 id=&quot;s-programom-composer&quot;&gt;S programom Composer&lt;/h3&gt;

&lt;p&gt;Priporočen način za nameščanje programa je s programom &lt;a href=&quot;https://getcomposer.org/&quot;&gt;Composer&lt;/a&gt;, upravljalcem odvisnosti za PHP.&lt;/p&gt;

&lt;p&gt;V projekt je potrebno dodati &lt;code class=&quot;highlighter-rouge&quot;&gt;filips123/config-writer&lt;/code&gt;.&lt;/p&gt;

&lt;div class=&quot;language-bash highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;composer require filips123/config-writer:^2.0
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Nato boste v vaš program morali samo vključiti autoloader in namepace.&lt;/p&gt;

&lt;div class=&quot;language-php highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;cp&quot;&gt;&amp;lt;?php&lt;/span&gt;

&lt;span class=&quot;k&quot;&gt;use&lt;/span&gt; &lt;span class=&quot;nx&quot;&gt;ConfigWriter\Config&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;

&lt;span class=&quot;k&quot;&gt;require&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;'vendor/autoload.php'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;

&lt;span class=&quot;nv&quot;&gt;$config&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;new&lt;/span&gt; &lt;span class=&quot;nx&quot;&gt;Config&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h2 id=&quot;brez-programa-composer&quot;&gt;Brez programa Composer&lt;/h2&gt;

&lt;p&gt;Lahko tudi prenesete datoteke iz GitHuba in jih ročno vključite v vaše datoteke.&lt;/p&gt;

&lt;p&gt;Nato boste v vaš program morali vključiti vse datoteke in namepace.&lt;/p&gt;

&lt;div class=&quot;language-php highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;cp&quot;&gt;&amp;lt;?php&lt;/span&gt;

&lt;span class=&quot;k&quot;&gt;use&lt;/span&gt; &lt;span class=&quot;nx&quot;&gt;ConfigWriter\Config&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;

&lt;span class=&quot;k&quot;&gt;require&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;'src/Exceptions/UnsupportedFormatException.php'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;k&quot;&gt;require&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;'src/Exceptions/WriteException.php'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;k&quot;&gt;require&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;'src/ConfigInterface.php'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;k&quot;&gt;require&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;'src/AbstractConfig.php'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;k&quot;&gt;require&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;'src/Config.php'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;k&quot;&gt;require&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;'src/Record.php'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;k&quot;&gt;require&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;'src/Writers/WriterInterface.php'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;k&quot;&gt;require&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;'src/Writers/PhpWriter.php'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;

&lt;span class=&quot;nv&quot;&gt;$config&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;new&lt;/span&gt; &lt;span class=&quot;nx&quot;&gt;Config&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h2 id=&quot;uporaba&quot;&gt;Uporaba&lt;/h2&gt;

&lt;h3 id=&quot;ustvarjanje-konfiguracije&quot;&gt;Ustvarjanje konfiguracije&lt;/h3&gt;

&lt;p&gt;Ustvarjanje konfiguracije je možno z razredom &lt;code class=&quot;highlighter-rouge&quot;&gt;ConfigWriter\Config&lt;/code&gt;.&lt;/p&gt;

&lt;div class=&quot;language-php highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;nv&quot;&gt;$config&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;new&lt;/span&gt; &lt;span class=&quot;nx&quot;&gt;Config&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Konstruktor sprejme dva parametra, podatke in komentar, ki pa nista zahtevana.
Parameter s podatki lahko vsebuje prenastavljene podatke za konfiguracijo, komenrar pa dodatni komentar (ali kodo), ki bo vključen na vrh generiranje datoteke.&lt;/p&gt;

&lt;div class=&quot;language-php highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;nv&quot;&gt;$config&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;new&lt;/span&gt; &lt;span class=&quot;nx&quot;&gt;Config&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;
    &lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;
        &lt;span class=&quot;s1&quot;&gt;'username'&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&amp;gt;&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;'user'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;
        &lt;span class=&quot;s1&quot;&gt;'password'&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&amp;gt;&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;'pass'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;
    &lt;span class=&quot;p&quot;&gt;],&lt;/span&gt;
    &lt;span class=&quot;sh&quot;&gt;&amp;lt;&amp;lt;&amp;lt;EOD
/**
 * The configuration file.
 *
 * It contains configuration data.
 */
EOD;
&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;);&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h3 id=&quot;dodajanje-zapisov&quot;&gt;Dodajanje zapisov&lt;/h3&gt;

&lt;p&gt;Dodajanje zapisov je možno z metodo &lt;code class=&quot;highlighter-rouge&quot;&gt;ConfigWriter\Config::addRecord()&lt;/code&gt;.&lt;/p&gt;

&lt;div class=&quot;language-php highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;nv&quot;&gt;$config&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;na&quot;&gt;addRecord&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;'application'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;'ConfigWriter'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;);&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Zapisi lahko vsebujejo tudi komentar, ki bo vključen v konfiguracijo.&lt;/p&gt;

&lt;div class=&quot;language-php highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;nv&quot;&gt;$config&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;na&quot;&gt;addRecord&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;'application'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;'ConfigWriter'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;'Application name'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;);&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h3 id=&quot;dodajanje-odsekov&quot;&gt;Dodajanje odsekov&lt;/h3&gt;

&lt;p&gt;Odseki vizualno in funkcionalno delijo zapise ali skupine zapisov. Dodani so lahko z metodo &lt;code class=&quot;highlighter-rouge&quot;&gt;ConfigWriter\Config::addSection()&lt;/code&gt;.&lt;/p&gt;

&lt;div class=&quot;language-php highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;nv&quot;&gt;$database&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;nv&quot;&gt;$config&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;na&quot;&gt;addSection&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;'database'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;[],&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;'Database settings'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;);&lt;/span&gt;

&lt;span class=&quot;nv&quot;&gt;$database&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;na&quot;&gt;addRecord&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;'host'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;'localhost'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;'Database host'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;);&lt;/span&gt;
&lt;span class=&quot;nv&quot;&gt;$database&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;na&quot;&gt;addRecord&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;'port'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;'3306'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;'Database port'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;);&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Tudi odseki lahko vsebujejo predefiniranje podatke in komentar.&lt;/p&gt;

&lt;div class=&quot;language-php highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;nv&quot;&gt;$config&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;na&quot;&gt;addSection&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;
    &lt;span class=&quot;s1&quot;&gt;'database'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;
    &lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;
        &lt;span class=&quot;s1&quot;&gt;'host'&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&amp;gt;&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;'localhost'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;
        &lt;span class=&quot;s1&quot;&gt;'port'&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&amp;gt;&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;'3306'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;
    &lt;span class=&quot;p&quot;&gt;],&lt;/span&gt;
    &lt;span class=&quot;s1&quot;&gt;'Database settings'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;);&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h3 id=&quot;shranjevanje-konfiguracije&quot;&gt;Shranjevanje konfiguracije&lt;/h3&gt;

&lt;p&gt;Konfiguracijo lahko shranite z metodama &lt;code class=&quot;highlighter-rouge&quot;&gt;ConfigWriter\Config::toString()&lt;/code&gt; in &lt;code class=&quot;highlighter-rouge&quot;&gt;ConfigWriter\Config::toFile()&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;Pri shranjevanju v niz je zapisovalec zahtevan, pri shranjevanju v datoteko pa bo samodejno določen.&lt;/p&gt;

&lt;div class=&quot;language-php highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;nv&quot;&gt;$config&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;na&quot;&gt;toString&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;k&quot;&gt;new&lt;/span&gt; &lt;span class=&quot;nx&quot;&gt;ConfigWriter\Writers\PhpWriter&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;);&lt;/span&gt;
&lt;span class=&quot;nv&quot;&gt;$config&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;na&quot;&gt;toFile&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;'config.php'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;);&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Zapisovalci lahko omogočajo tudi dodatne zapisovalne možnosti. Njihovo spreminjanje lahko trenutno povzroči nestabilno delovanje programa.&lt;/p&gt;

&lt;div class=&quot;language-php highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;nv&quot;&gt;$config&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;na&quot;&gt;toFile&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;'config.php'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;new&lt;/span&gt; &lt;span class=&quot;nx&quot;&gt;ConfigWriter\Writers\PhpWriter&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;'indentation'&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&amp;gt;&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;'	'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;]);&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Trenutno edini podprt zapisovalec je za PHP array, vendar bo več zapisovalcev dodanih kasneje.&lt;/p&gt;

&lt;h2 id=&quot;različice&quot;&gt;Različice&lt;/h2&gt;

&lt;p&gt;Program za različice uporablja &lt;a href=&quot;https://semver.org/&quot;&gt;SemVer&lt;/a&gt;. Za ogled objavljenih različic obiščite &lt;a href=&quot;https://github.com/filips123/ConfigWriter/tags/&quot;&gt;oznake na skladišču&lt;/a&gt;.&lt;/p&gt;

&lt;h2 id=&quot;licenca&quot;&gt;Licenca&lt;/h2&gt;

&lt;p&gt;Program je zaščiten z licenco &lt;a href=&quot;https://choosealicense.com/licenses/mit/&quot;&gt;MIT&lt;/a&gt;.&lt;/p&gt;</content><author><name></name></author><category term="konfiguracija" /><category term="nastavitve" /><summary type="html">PHP Config Writer je PHP knjižnjica za enostavno zapisovanje konfiguracijskih datotek.</summary></entry><entry><title type="html">SenseOUT</title><link href="http://projects.filips.si/2018/10/18/senseout" rel="alternate" type="text/html" title="SenseOUT" /><published>2018-10-18T16:34:53+02:00</published><updated>2018-10-18T16:34:53+02:00</updated><id>http://projects.filips.si/2018/10/18/senseout</id><content type="html" xml:base="http://projects.filips.si/2018/10/18/senseout">&lt;p&gt;Sense HAT LED prikazovalnik kot Linux FIFO datoteka.&lt;/p&gt;

&lt;!--more--&gt;

&lt;p&gt;&lt;img src=&quot;https://user-images.githubusercontent.com/16626308/41469297-f47957ec-70ac-11e8-8c75-29812fb4ada0.png&quot; alt=&quot;Sense HAT&quot; /&gt;&lt;/p&gt;

&lt;h2 id=&quot;opis&quot;&gt;Opis&lt;/h2&gt;

&lt;p&gt;Ta porjekt uporablja Python 3 program, ki bere iz Linux FIFO datoteke in rezultat izpiše na Sense HAT LED prikazovalnik.
Branje iz navadnih ter drugih device datotek je tudi podprto.&lt;/p&gt;

&lt;p&gt;Projekt je narajen samo za zabavo in naj ne bi imel uporabne vrednosti. Če jo najdete, mi to prosim sporočite.&lt;/p&gt;

&lt;h2 id=&quot;uporaba&quot;&gt;Uporaba&lt;/h2&gt;

&lt;p&gt;Projekt deluje samo na Raspberry Pi z nastavljenim Sense HAT in nameščenim programskim jezikom Python. Preizkušen je bil samo na Raspberry Pi 3, vendar najverjetneje deluje tudi na drugih različicah Raspberry Pi.&lt;/p&gt;

&lt;p&gt;Najprej morate klonirati projekt:&lt;/p&gt;

&lt;div class=&quot;language-bash highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;git clone  https://github.com/filips123/SenseOUT.git &lt;span class=&quot;c&quot;&gt;# Klonira projekt&lt;/span&gt;
&lt;span class=&quot;nb&quot;&gt;cd &lt;/span&gt;SenseOUT &lt;span class=&quot;c&quot;&gt;# Premakne se v mapo s projektom&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Nato morate ustvariti novo Linux FIFO datoteko:&lt;/p&gt;

&lt;div class=&quot;language-bash highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;mkfifo sensehat &lt;span class=&quot;c&quot;&gt;# Ustvari novo FIFO datoteko&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Privzeta datoteka je &lt;code class=&quot;highlighter-rouge&quot;&gt;sensehat&lt;/code&gt;. Za njeno spremembo podajte pot do druge datoteke kot prvi parameter:&lt;/p&gt;

&lt;div class=&quot;language-bash highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;python3 handler.py /path/to/file &lt;span class=&quot;c&quot;&gt;# Uporabi drugo datoteko&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Program lahko zaženete tudi v ozadju:&lt;/p&gt;

&lt;div class=&quot;language-bash highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;python3 handler.py &amp;amp; &lt;span class=&quot;c&quot;&gt;# Zažene program v ozadju&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Nato lahko v datoteko pišete podatke, ki bodo prikatani na Sense HAT LED prikazovalniku:&lt;/p&gt;

&lt;div class=&quot;language-bash highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;nb&quot;&gt;echo&lt;/span&gt; &lt;span class=&quot;s2&quot;&gt;&quot;ABC&quot;&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;&amp;gt;&lt;/span&gt; sensehat &lt;span class=&quot;c&quot;&gt;# Izpiše samo na Sense HAT LED prikazovalniku&lt;/span&gt;
&lt;span class=&quot;c&quot;&gt;# ALI #&lt;/span&gt;
&lt;span class=&quot;nb&quot;&gt;echo&lt;/span&gt; &lt;span class=&quot;s2&quot;&gt;&quot;ABC&quot;&lt;/span&gt; | tee sensehat &lt;span class=&quot;c&quot;&gt;# Izpiše v terminal in Sense HAT LED prikazovalnik&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Izpišete lahko tudi izhode drugih ukazov, vendar ni priporo9čljivo uporabiti datoteke z dolgim izhodom:&lt;/p&gt;

&lt;div class=&quot;language-bash highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;nb&quot;&gt;ls&lt;/span&gt; | tee sensehat &lt;span class=&quot;c&quot;&gt;# Vsebino mape izpiše v terminal in Sense HAT LED prikazovalnik&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h2 id=&quot;licenca&quot;&gt;Licenca&lt;/h2&gt;

&lt;p&gt;Program je zaščiten z licenco &lt;a href=&quot;https://www.gnu.org/licenses/gpl-3.0.en.html&quot;&gt;GNU General Public License v3&lt;/a&gt;.&lt;/p&gt;</content><author><name></name></author><category term="prikazovalnik" /><category term="terminal" /><category term="ukaz" /><summary type="html">Sense HAT LED prikazovalnik kot Linux FIFO datoteka.</summary></entry><entry><title type="html">BlogChain</title><link href="http://projects.filips.si/2018/10/18/blogchain" rel="alternate" type="text/html" title="BlogChain" /><published>2018-10-18T16:02:54+02:00</published><updated>2018-10-18T16:02:54+02:00</updated><id>http://projects.filips.si/2018/10/18/blogchain</id><content type="html" xml:base="http://projects.filips.si/2018/10/18/blogchain">&lt;p&gt;Decentralizirani spletni dnevnik s pomočjo pametnih pogodb Ethereum in Web3.&lt;/p&gt;

&lt;!--more--&gt;

&lt;p&gt;&lt;img src=&quot;https://vectr.com/filips123/b1Bzz8jXxa.png?width=500&amp;amp;height=100&amp;amp;select=b1Bzz8jXxapage0&quot; alt=&quot;BlogChain Logo&quot; /&gt;&lt;/p&gt;

&lt;h2 id=&quot;opis&quot;&gt;Opis&lt;/h2&gt;

&lt;p&gt;Decentralizirani spletni dnevnik s pomočjo &lt;a href=&quot;https://www.ethereum.org&quot;&gt;pametnih pogodb Ethereum&lt;/a&gt; in &lt;a href=&quot;https://github.com/ethereum/web3.js&quot;&gt;Web3&lt;/a&gt;. Uporablja &lt;a href=&quot;http://truffleframework.com&quot;&gt;Truffle Framework&lt;/a&gt; za razvijanje pametnih pogodb in &lt;a href=&quot;https://getbootstrap.com&quot;&gt;Bootstrap&lt;/a&gt; za spletno stran. Uporablja tudi &lt;a href=&quot;https://ipfs.io&quot;&gt;IPFS&lt;/a&gt; za spletno gostovanje.&lt;/p&gt;

&lt;h3 id=&quot;značilnosti&quot;&gt;Značilnosti&lt;/h3&gt;

&lt;ul&gt;
  &lt;li&gt;Decentraliziran&lt;/li&gt;
  &lt;li&gt;Lahko uporablja katerokoli Ethereum omrežje&lt;/li&gt;
  &lt;li&gt;Uporablja IPFS za spletno gostovanje&lt;/li&gt;
  &lt;li&gt;Majhna velikost datoteke&lt;/li&gt;
  &lt;li&gt;&lt;em&gt;več značilnosti prihaja …&lt;/em&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h3 id=&quot;todo&quot;&gt;TODO&lt;/h3&gt;

&lt;ul class=&quot;task-list&quot;&gt;
  &lt;li class=&quot;task-list-item&quot;&gt;&lt;input type=&quot;checkbox&quot; class=&quot;task-list-item-checkbox&quot; disabled=&quot;disabled&quot; /&gt;Brisanje in urejanje prispevkov&lt;/li&gt;
  &lt;li class=&quot;task-list-item&quot;&gt;&lt;input type=&quot;checkbox&quot; class=&quot;task-list-item-checkbox&quot; disabled=&quot;disabled&quot; /&gt;Brisanje in prenos spletnih dnevnikov&lt;/li&gt;
  &lt;li class=&quot;task-list-item&quot;&gt;&lt;input type=&quot;checkbox&quot; class=&quot;task-list-item-checkbox&quot; disabled=&quot;disabled&quot; /&gt;Prevodi&lt;/li&gt;
  &lt;li class=&quot;task-list-item&quot;&gt;&lt;input type=&quot;checkbox&quot; class=&quot;task-list-item-checkbox&quot; disabled=&quot;disabled&quot; /&gt;Boljše testiranje kode&lt;/li&gt;
  &lt;li class=&quot;task-list-item&quot;&gt;&lt;input type=&quot;checkbox&quot; class=&quot;task-list-item-checkbox&quot; disabled=&quot;disabled&quot; /&gt;Boljša dokumentacija kode&lt;/li&gt;
  &lt;li class=&quot;task-list-item&quot;&gt;&lt;input type=&quot;checkbox&quot; class=&quot;task-list-item-checkbox&quot; disabled=&quot;disabled&quot; /&gt;JavaScript API&lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id=&quot;kako-deluje&quot;&gt;Kako deluje&lt;/h2&gt;

&lt;p&gt;TODO&lt;/p&gt;

&lt;h2 id=&quot;uporaba&quot;&gt;Uporaba&lt;/h2&gt;

&lt;p&gt;BlogChain lahko zaženete lokalno, ali pa ga objavite na &lt;a href=&quot;https://ipfs.io&quot;&gt;IPFS&lt;/a&gt; ali drugo gostovanje.&lt;/p&gt;

&lt;h3 id=&quot;zahteve&quot;&gt;Zahteve&lt;/h3&gt;

&lt;p&gt;You must have &lt;a href=&quot;https://nodejs.org&quot;&gt;Node.js&lt;/a&gt; and &lt;a href=&quot;https://www.npmjs.com&quot;&gt;NPM&lt;/a&gt; installed. You also need to install &lt;a href=&quot;http://truffleframework.com&quot;&gt;Truffle Framework&lt;/a&gt;.
You must be connected to the Ethereum blockchain to use the tests. I suggest you use &lt;a href=&quot;http://truffleframework.com/ganache&quot;&gt;Ganache&lt;/a&gt;, which creates a personal Ethereum blockchain.
For web hosting, you can use &lt;a href=&quot;https://ipfs.io&quot;&gt;IPFS&lt;/a&gt;.&lt;/p&gt;

&lt;h3 id=&quot;namestitev&quot;&gt;Namestitev&lt;/h3&gt;

&lt;p&gt;Program lahko namestite iz GitHub skladišča z uporabo &lt;code class=&quot;highlighter-rouge&quot;&gt;git&lt;/code&gt; ali s prenosom iz &lt;a href=&quot;https://github.com/filips123/BlogChain/releases&quot;&gt;GitHub različic&lt;/a&gt;.
Nato morate prenesti dodatne NPM pakete. BlogChain trenutno uporablja &lt;code class=&quot;highlighter-rouge&quot;&gt;lite-server&lt;/code&gt; za lokalno spletno gostovanje.&lt;/p&gt;

&lt;div class=&quot;language-bash highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;git clone https://github.com/filips123/BlogChain.git
&lt;span class=&quot;nb&quot;&gt;cd &lt;/span&gt;BlogChain
npm install
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h3 id=&quot;poganjanje&quot;&gt;Poganjanje&lt;/h3&gt;

&lt;p&gt;Za prevajanje pametnih pogodb zaženite:&lt;/p&gt;

&lt;div class=&quot;language-bash highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;truffle compile
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Prevedene pogodbe bodo shranjene v mapi &lt;code class=&quot;highlighter-rouge&quot;&gt;build/contracts&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;Za preizkušanje programa zaženite:&lt;/p&gt;

&lt;div class=&quot;language-bash highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;truffle &lt;span class=&quot;nb&quot;&gt;test&lt;/span&gt;
&lt;span class=&quot;c&quot;&gt;# or&lt;/span&gt;
npm &lt;span class=&quot;nb&quot;&gt;test&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Za to morate biti povezani na Ethereum verigo blokov. Za to priporočam uporabo &lt;a href=&quot;http://truffleframework.com/ganache&quot;&gt;Ganache&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Za zagon &lt;code class=&quot;highlighter-rouge&quot;&gt;lite-server&lt;/code&gt; za lokalno spletno gostovanje zaženite:&lt;/p&gt;

&lt;div class=&quot;language-bash highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;npm run dev
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;To bo prevedlo pogodbe in zagnalo strežnik na vratih 3000.&lt;/p&gt;

&lt;h3 id=&quot;objavljanje-na-ipfs&quot;&gt;Objavljanje na IPFS&lt;/h3&gt;

&lt;p&gt;Spletno stran BlogChain lahko objavite na &lt;a href=&quot;https://ipfs.io&quot;&gt;IPFS&lt;/a&gt;. Najprej ga morate namestiti in nastaviti &lt;code class=&quot;highlighter-rouge&quot;&gt;path&lt;/code&gt; spremenljivko.&lt;/p&gt;

&lt;p&gt;Najprej je potrebno kopirati prevedene pogodbe (&lt;code class=&quot;highlighter-rouge&quot;&gt;build/contracts/BlogChain.json&lt;/code&gt;) in spletno stran (&lt;code class=&quot;highlighter-rouge&quot;&gt;src&lt;/code&gt;) v isto mapo.&lt;/p&gt;

&lt;p&gt;Nato sledite navodilom v Medium članku &lt;a href=&quot;https://medium.com/@merunasgrincalaitis/the-ultimate-end-to-end-tutorial-to-create-and-deploy-a-fully-descentralized-dapp-in-ethereum-18f0cf6d7e0e#6513&quot;&gt;The ultimate end-to-end tutorial to create and deploy a fully decentralized Dapp in ethereum&lt;/a&gt; (ne pozabite spremeniti iem mape). Spodaj je njihov povzetek.&lt;/p&gt;

&lt;p&gt;Zaženite ukaz:&lt;/p&gt;

&lt;div class=&quot;language-bash highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;ipfs daemon
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;To bo ustvarilo node. V drugi ukazni vrstici ali terminalu zaženite:&lt;/p&gt;

&lt;div class=&quot;language-bash highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;ipfs swarm peers
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;To bo omogočalo deljenje vaše vsebine. Nato zaženite:&lt;/p&gt;

&lt;div class=&quot;language-bash highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;ipfs add &lt;span class=&quot;nt&quot;&gt;-r&lt;/span&gt; path/to/website/and/compiled/contract/directory/
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;To bo dodalo vašo mapo v omrežje. Videli boste dolg hash, ki je bil ustvarjen za vas. Zadnji je unikatni identifikator vaše mape:&lt;/p&gt;

&lt;div class=&quot;highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;added QmcCZLY7ubZ7pb5hkwSMzazNGkrJpfsHidiEwAi9ep9s7b website/css
added QmPboMFyB7p1rsjcEA8W9TfcQfkUeBhubZQDYPUVtnmXWF website/icons
added QmQGMa9EFZZ29qoL8SnaFcFmY32QKHC7GixxaEyw63aKHv website/js
added Qma1PfCMzemunU9wCTZHCMo6BfgGbMZ1Q3gXpaZTa6uY64 website
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Kopirajte zadnji hash (primer &lt;code class=&quot;highlighter-rouge&quot;&gt;Qmc73ZkESUP9sZyU4zGgDMQajfNVLqqKdxPut9GmvStjtJ&lt;/code&gt;) in zaženite:&lt;/p&gt;

&lt;div class=&quot;language-bash highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;ipfs name publish your-last-hash
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Videli boste nekaj takega:&lt;/p&gt;

&lt;div class=&quot;highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;Published to Qmc2LMjSaXPFRvPJCCb4EfctYNLsKE1WTJC7BMxLrN9fmD: /ipfs/Qmc73ZkESUP9sZyU4zGgDMQajfNVLqqKdxPut9GmvStjtJ
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;To pomeni, da bo spletna stran na voljo na URL naslovu od zadnjega hasha (primer &lt;code class=&quot;highlighter-rouge&quot;&gt;Qmc2LMjSaXPFRvPJCCb4EfctYNLsKE1WTJC7BMxLrN9fmD&lt;/code&gt;. Preverite jo lahko, tako da obiščete &lt;code class=&quot;highlighter-rouge&quot;&gt;https://gateway.ipfs.io/ipns/&amp;lt;your-hash-here&amp;gt;&lt;/code&gt;.
V mojem primeru je to:&lt;/p&gt;

&lt;div class=&quot;highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;https://gateway.ipfs.io/ipns/Qmc2LMjSaXPFRvPJCCb4EfctYNLsKE1WTJC7BMxLrN9fmD
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Po posodobitvi pogodb ali datotek zaženite:&lt;/p&gt;

&lt;div class=&quot;language-bash highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;ipfs add &lt;span class=&quot;nt&quot;&gt;-r&lt;/span&gt; path/to/website/and/compiled/contract/directory/
ipfs name publish your-last-hash
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Objabljen hash bo vedno enak.&lt;/p&gt;

&lt;h3 id=&quot;nastavitve&quot;&gt;Nastavitve&lt;/h3&gt;

&lt;p&gt;Truffle lahko prilagodite v datoteki &lt;a href=&quot;https://github.com/filips123/BlogChain/blob/master/truffle-config.js&quot;&gt;truffle-config.js&lt;/a&gt;. Za več informacij obiščite &lt;a href=&quot;http://truffleframework.com/docs/advanced/configuration&quot;&gt;Truffle Documentation&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Več možnosti prihaja …&lt;/em&gt;&lt;/p&gt;

&lt;h2 id=&quot;uporablja&quot;&gt;Uporablja&lt;/h2&gt;

&lt;ul&gt;
  &lt;li&gt;&lt;a href=&quot;https://www.ethereum.org&quot;&gt;Ethereum&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;http://truffleframework.com&quot;&gt;Truffle Framework&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;https://github.com/ethereum/web3.js&quot;&gt;Web3&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;https://getbootstrap.com&quot;&gt;Bootstrap&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;https://ipfs.io&quot;&gt;IPFS&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id=&quot;prispevanje&quot;&gt;Prispevanje&lt;/h2&gt;

&lt;p&gt;Za prispevanje k projektu si preberite &lt;a href=&quot;https://github.com/filips123/BlogChain/blob/master/CONTRIBUTING.md&quot;&gt;CONTRIBUTING.md&lt;/a&gt;.&lt;/p&gt;

&lt;h2 id=&quot;različice&quot;&gt;Različice&lt;/h2&gt;

&lt;p&gt;Program za različice uporablja &lt;a href=&quot;http://semver.org&quot;&gt;SemVer&lt;/a&gt;. Za ogled objavljenih različic obiščite &lt;a href=&quot;https://github.com/filips123/BlogChain/tags&quot;&gt;oznake na skladišču&lt;/a&gt;.&lt;/p&gt;

&lt;h2 id=&quot;licenca&quot;&gt;Licenca&lt;/h2&gt;

&lt;p&gt;Program je zaščiten z licenco &lt;a href=&quot;https://www.gnu.org/licenses/gpl-3.0.en.html&quot;&gt;GNU General Public License v3&lt;/a&gt;.&lt;/p&gt;</content><author><name></name></author><category term="decentralizirano" /><category term="blog" /><category term="splet" /><summary type="html">Decentralizirani spletni dnevnik s pomočjo pametnih pogodb Ethereum in Web3.</summary></entry><entry><title type="html">Tekmovanje Astro Pi 2017/18 - Ekipa Jakopičevca</title><link href="http://projects.filips.si/2018/04/01/jakopicevca" rel="alternate" type="text/html" title="Tekmovanje Astro Pi 2017/18 - Ekipa Jakopičevca" /><published>2018-04-01T20:27:23+02:00</published><updated>2018-04-01T20:27:23+02:00</updated><id>http://projects.filips.si/2018/04/01/jakopicevca</id><content type="html" xml:base="http://projects.filips.si/2018/04/01/jakopicevca">&lt;p&gt;Program ekipe Jakopičevca za tekmovanje Astro Pi 2017/18 v misiji Space Lab.&lt;/p&gt;

&lt;!--more--&gt;

&lt;h2 id=&quot;opis&quot;&gt;Opis&lt;/h2&gt;

&lt;p&gt;Želela sva raziskati, koliko Slovenije (in drugih držav) je pokrite z gozdovi. Rezultate sva želela primerjati s prejšnjimi slikami pogozdovanja, da bi odkrila krčenje ali celo širjenje gozdov. Prav tako sva želela raziskati svetlobno onesnaženje z nočnimi fotografijami. Za določitev različnih barv na slikah sva uporabila kamero NoIR.&lt;/p&gt;

&lt;h2 id=&quot;kako-deluje&quot;&gt;Kako deluje&lt;/h2&gt;

&lt;p&gt;Program za določitev lokacije Mednarodne vesoljske postaje (ISS) uporablja modul ephem. Kadar bo ISS leti nad določenimi državami, bo program fotografiral Zemljo na določeno število sekund in fotografije shranil v mapo z imenom lokacije. Ker je možno, da ISS ne bi letel nad določenimi državami, ali pa bi bili lokacijski izračuni napačni, program v vsakem primeru fotografira Zemljo, vendar manj pogosto, in shrani fotografije v mapo &lt;code class=&quot;highlighter-rouge&quot;&gt;default&lt;/code&gt;. Zaradi analize fotografij program s pomočjo magnetometra shranjuje tudi oddaljenost od severa. Lokacije, podatki s senzorjev in čas se shranjujejo v datoteko CSV.&lt;/p&gt;

&lt;p&gt;Lokacije za fotografiranje in druge nastavitve so shranjene v datoteki &lt;code class=&quot;highlighter-rouge&quot;&gt;cofig.json&lt;/code&gt;. Datoteka vsebuje tudi TLE podatke, zato jih pred zagonom programa posodobite. V razdelku &lt;code class=&quot;highlighter-rouge&quot;&gt;locations&lt;/code&gt; so shranjene lokacije držav za fotografiranje.  Vrednost &lt;code class=&quot;highlighter-rouge&quot;&gt;latitude1&lt;/code&gt; je zemljepisna širina najsevernejše točke države, &lt;code class=&quot;highlighter-rouge&quot;&gt;latitude2&lt;/code&gt; je zemljepisna širina najjužnejše točke države, &lt;code class=&quot;highlighter-rouge&quot;&gt;longitude1&lt;/code&gt; je zemljepisna širina najzahodnejše točke države, &lt;code class=&quot;highlighter-rouge&quot;&gt;longitude2&lt;/code&gt; pa je zemljepisna širina najvzhodnejše točke države. Vrednost &lt;code class=&quot;highlighter-rouge&quot;&gt;delay&lt;/code&gt; je število sekund med posameznimi fotografijami. V razdelku &lt;code class=&quot;highlighter-rouge&quot;&gt;default&lt;/code&gt; so shranjene informacije o fotografiranju, kadar ISS ne leti nad nobeno državo. Vrednost &lt;code class=&quot;highlighter-rouge&quot;&gt;delay&lt;/code&gt; je število sekund med posameznimi fotografijami, &lt;code class=&quot;highlighter-rouge&quot;&gt;fallbackDelay&lt;/code&gt; pa je število sekund med posameznimi fotografijami, kadar pride do napake pri pridobivanju lokacije ISS.&lt;/p&gt;

&lt;h2 id=&quot;uporaba&quot;&gt;Uporaba&lt;/h2&gt;

&lt;p&gt;Program mora biti zagnan na Raspberry Pi. Program je namenjen uporabi na ISS, vendar je lahko z nekaterimi prilagoditvami primeren tudi za druga okolja.&lt;/p&gt;

&lt;h3 id=&quot;zahteve&quot;&gt;Zahteve&lt;/h3&gt;

&lt;p&gt;Program uporablja Python 3 in ni bil preizkušen na Python 2. Uporablja naslednje Python module:&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;sense-hat&lt;/li&gt;
  &lt;li&gt;picamera&lt;/li&gt;
  &lt;li&gt;ephem&lt;/li&gt;
&lt;/ul&gt;

&lt;h3 id=&quot;namestitev&quot;&gt;Namestitev&lt;/h3&gt;

&lt;p&gt;Program je priporočljivo namestiti v Python VENV, ki mora biti ustvarjen z argumentom `-sistem-site-packages, vendar so tukaj splošna navodila za namestitev.&lt;/p&gt;

&lt;p&gt;Namestitev iz PyPI:&lt;/p&gt;

&lt;figure class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;language-shell&quot; data-lang=&quot;shell&quot;&gt;&lt;span class=&quot;nb&quot;&gt;sudo &lt;/span&gt;pip3 install jakopicevca&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;

&lt;p&gt;Namestitev iz GitHub skladišča:&lt;/p&gt;

&lt;figure class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;language-shell&quot; data-lang=&quot;shell&quot;&gt;git clone https://github.com/filips123/jakopicevca/
&lt;span class=&quot;nb&quot;&gt;cd &lt;/span&gt;jakopicevca
&lt;span class=&quot;nb&quot;&gt;sudo &lt;/span&gt;python3 setup.py install&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;

&lt;h3 id=&quot;zagon&quot;&gt;Zagon&lt;/h3&gt;

&lt;p&gt;Ustvarite datoteko &lt;code class=&quot;highlighter-rouge&quot;&gt;config.json&lt;/code&gt; z naslednjo vsebino (dopolnite manjkajoče informacije):&lt;/p&gt;

&lt;figure class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;language-json&quot; data-lang=&quot;json&quot;&gt;&lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
  &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;TLE&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
    &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;ISS (ZARYA)&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
    &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;### Pridobite ISS TLE podatke iz ###&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
    &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;### https://www.celestrak.com/NORAD/elements/stations.txt ###&quot;&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
  &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;],&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;

  &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;locations&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
      &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;### Ime lokacije ###&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
      &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;latitude1&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;err&quot;&gt;najsevernejsa-tocka&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
      &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;latitude2&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;err&quot;&gt;najjuznejsa-tocka&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
      &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;longitude1&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;err&quot;&gt;najzahodnejsa-tocka&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
      &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;longitude2&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;err&quot;&gt;najvzhodnejsa-tocka&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
      &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;delay&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;err&quot;&gt;premor-med-fotografijami&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
      &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
  &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;},&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;

  &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;default&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
    &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;delay&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;err&quot;&gt;privzeti-premor-med-fotografijami&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
    &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;fallbackDelay&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;err&quot;&gt;nadomestni-premor-med-potografijami&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
  &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;}&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;

&lt;p&gt;Shranite to datoteko in zaženite program z:&lt;/p&gt;

&lt;figure class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;language-shell&quot; data-lang=&quot;shell&quot;&gt;python3 &lt;span class=&quot;nt&quot;&gt;-m&lt;/span&gt; jakopicevca pot/do/config.json pot/do/datoteke.csv pod/do/mape/s/fotografijami pot/do/datoteke.log&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;

&lt;p&gt;Datoteki CSV in log, in mapa s fotografijami bodo ustvarjeni samodejno.&lt;/p&gt;

&lt;h2 id=&quot;licenca&quot;&gt;Licenca&lt;/h2&gt;

&lt;p&gt;Program je zaščiten z licenco &lt;a href=&quot;https://www.gnu.org/licenses/gpl-3.0.en.html&quot;&gt;GNU General Public License v3&lt;/a&gt;.&lt;/p&gt;</content><author><name></name></author><category term="znanost" /><category term="astronomija" /><summary type="html">Program ekipe Jakopičevca za tekmovanje Astro Pi 2017/18 v misiji Space Lab.</summary></entry><entry><title type="html">Posodobitev Filipovih GitHub projektov</title><link href="http://projects.filips.si/2018/03/31/posodobitev-filipovih-github-projektov" rel="alternate" type="text/html" title="Posodobitev Filipovih GitHub projektov" /><published>2018-03-31T20:38:54+02:00</published><updated>2018-03-31T20:38:54+02:00</updated><id>http://projects.filips.si/2018/03/31/posodobitev-filipovih-github-projektov</id><content type="html" xml:base="http://projects.filips.si/2018/03/31/posodobitev-filipovih-github-projektov">&lt;p&gt;Danes je bila izvedena posodobitev Filipovih GitHub projektov. Stran ima zdaj novo podobo.&lt;/p&gt;

&lt;!--more--&gt;

&lt;p&gt;Določeni deli strani se še vedno posodabljajo, zato lahko pride do težav.&lt;/p&gt;

&lt;p&gt;Stara stran bo še vedno dostopna na &lt;a href=&quot;https://projects.filips.si/projects-archive/&quot;&gt;https://projects.filips.si/projects-archive/&lt;/a&gt;, vendar ne bo posodobljena.&lt;/p&gt;</content><author><name></name></author><category term="obvestila" /><category term="posodobitve" /><summary type="html">Danes je bila izvedena posodobitev Filipovih GitHub projektov. Stran ima zdaj novo podobo.</summary></entry><entry><title type="html">PHP Config Writer v1</title><link href="http://projects.filips.si/2016/05/26/php-config-writer-v1" rel="alternate" type="text/html" title="PHP Config Writer v1" /><published>2016-05-26T16:29:43+02:00</published><updated>2016-05-26T16:29:43+02:00</updated><id>http://projects.filips.si/2016/05/26/php-config-writer-v1</id><content type="html" xml:base="http://projects.filips.si/2016/05/26/php-config-writer-v1">&lt;p&gt;PHP Config Writer je PHP knjižnjica za enostavno zapisovanje konfiguracijskih datotek v navadni ali razredni obliki.&lt;/p&gt;

&lt;!--more--&gt;

&lt;p&gt;&lt;strong&gt;Ta različica je zastarela. Uporabite &lt;a href=&quot;../../../2018/11/19/php-config-writer-v2&quot;&gt;novo različico v2&lt;/a&gt;.&lt;/strong&gt;&lt;/p&gt;

&lt;h2 id=&quot;namestitev-in-uporaba&quot;&gt;Namestitev in uporaba&lt;/h2&gt;

&lt;p&gt;Vse datoteke, razen &lt;code class=&quot;highlighter-rouge&quot;&gt;.travis.yml&lt;/code&gt;, &lt;code class=&quot;highlighter-rouge&quot;&gt;README.md&lt;/code&gt; in &lt;code class=&quot;highlighter-rouge&quot;&gt;composer.json&lt;/code&gt;, prenesite na strežnik.&lt;/p&gt;

&lt;h3 id=&quot;zapisovanje-pdatkov&quot;&gt;Zapisovanje pdatkov&lt;/h3&gt;

&lt;ul&gt;
  &lt;li&gt;Najprej vpišite kodo:&lt;/li&gt;
&lt;/ul&gt;

&lt;figure class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;language-php&quot; data-lang=&quot;php&quot;&gt;&lt;span class=&quot;k&quot;&gt;include&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;''&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;);&lt;/span&gt; &lt;span class=&quot;c1&quot;&gt;// Med ' in ' vpišite pot do php-config.php datoteke
&lt;/span&gt;
&lt;span class=&quot;nv&quot;&gt;$config&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;new&lt;/span&gt; &lt;span class=&quot;nx&quot;&gt;Config&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;

&lt;span class=&quot;nv&quot;&gt;$config&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;na&quot;&gt;language&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;''&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;);&lt;/span&gt; &lt;span class=&quot;c1&quot;&gt;// Med ' in '; vpišite jezik (slovenian ali english)
&lt;/span&gt;&lt;span class=&quot;nv&quot;&gt;$config&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;na&quot;&gt;showClass&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;();&lt;/span&gt; &lt;span class=&quot;c1&quot;&gt;// Med ( in ) vpišite ali naj prikaže razred (1 ali 0)
&lt;/span&gt;&lt;span class=&quot;nv&quot;&gt;$config&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;na&quot;&gt;showOther&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;();&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;//&lt;/span&gt; &lt;span class=&quot;nx&quot;&gt;Med&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;(&lt;/span&gt; &lt;span class=&quot;nx&quot;&gt;in&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;nx&quot;&gt;vpišite&lt;/span&gt; &lt;span class=&quot;nx&quot;&gt;ali&lt;/span&gt; &lt;span class=&quot;nx&quot;&gt;naj&lt;/span&gt; &lt;span class=&quot;nx&quot;&gt;prikaže&lt;/span&gt; &lt;span class=&quot;nx&quot;&gt;vrednosti&lt;/span&gt; &lt;span class=&quot;nx&quot;&gt;zunaj&lt;/span&gt; &lt;span class=&quot;nx&quot;&gt;razreda&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;1&lt;/span&gt; &lt;span class=&quot;nx&quot;&gt;ali&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;

&lt;ul&gt;
  &lt;li&gt;Dodajate lahko tudi komentarje:&lt;/li&gt;
&lt;/ul&gt;

&lt;figure class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;language-php&quot; data-lang=&quot;php&quot;&gt;&lt;span class=&quot;nv&quot;&gt;$config&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;na&quot;&gt;comment&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;''&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;);&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;//&lt;/span&gt; &lt;span class=&quot;nx&quot;&gt;Med&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;' in '&lt;/span&gt; &lt;span class=&quot;nx&quot;&gt;vpišite&lt;/span&gt; &lt;span class=&quot;nx&quot;&gt;komentar&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;

&lt;ul&gt;
  &lt;li&gt;Vrednosti dodajate s to kodo:&lt;/li&gt;
&lt;/ul&gt;

&lt;figure class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;language-php&quot; data-lang=&quot;php&quot;&gt;&lt;span class=&quot;nv&quot;&gt;$config&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;na&quot;&gt;set&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;''&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;''&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;''&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;);&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;//&lt;/span&gt; &lt;span class=&quot;nx&quot;&gt;Prvi&lt;/span&gt; &lt;span class=&quot;nx&quot;&gt;argument&lt;/span&gt; &lt;span class=&quot;nx&quot;&gt;je&lt;/span&gt; &lt;span class=&quot;nx&quot;&gt;ime&lt;/span&gt; &lt;span class=&quot;nx&quot;&gt;vrednosti&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;nx&quot;&gt;drugi&lt;/span&gt; &lt;span class=&quot;nx&quot;&gt;vrednost&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;nx&quot;&gt;tretji&lt;/span&gt; &lt;span class=&quot;nx&quot;&gt;pa&lt;/span&gt; &lt;span class=&quot;nx&quot;&gt;komentar&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;po&lt;/span&gt; &lt;span class=&quot;nx&quot;&gt;želji&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;

&lt;ul&gt;
  &lt;li&gt;Za zapis v datoteko napišite še:&lt;/li&gt;
&lt;/ul&gt;

&lt;figure class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;language-php&quot; data-lang=&quot;php&quot;&gt;&lt;span class=&quot;nv&quot;&gt;$data&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;nv&quot;&gt;$config&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;na&quot;&gt;toString&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;' '&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;''&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;''&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;);&lt;/span&gt; &lt;span class=&quot;c1&quot;&gt;// Prvi argument je ime razreda (po želji drugače prazno), drugi je kaj naj bo v razredu (po želji drugače prazno), tretji pa dodatna koda izven razreda (po želji drugače prazno)
&lt;/span&gt;&lt;span class=&quot;nv&quot;&gt;$config&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;na&quot;&gt;toFile&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;''&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;nv&quot;&gt;$data&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;);&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;//&lt;/span&gt; &lt;span class=&quot;nx&quot;&gt;Prvi&lt;/span&gt; &lt;span class=&quot;nx&quot;&gt;argument&lt;/span&gt; &lt;span class=&quot;nx&quot;&gt;je&lt;/span&gt; &lt;span class=&quot;nx&quot;&gt;ime&lt;/span&gt; &lt;span class=&quot;nx&quot;&gt;datoteke&lt;/span&gt; &lt;span class=&quot;nx&quot;&gt;v&lt;/span&gt; &lt;span class=&quot;nx&quot;&gt;katero&lt;/span&gt; &lt;span class=&quot;nx&quot;&gt;se&lt;/span&gt; &lt;span class=&quot;nx&quot;&gt;naj&lt;/span&gt; &lt;span class=&quot;nx&quot;&gt;zapiše&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;nx&quot;&gt;drugega&lt;/span&gt; &lt;span class=&quot;nx&quot;&gt;pustite&lt;/span&gt; &lt;span class=&quot;nx&quot;&gt;privzeto&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;

&lt;h3 id=&quot;branje-podatkov&quot;&gt;Branje podatkov&lt;/h3&gt;

&lt;ul&gt;
  &lt;li&gt;Če ste uporabili razred vpišite:&lt;/li&gt;
&lt;/ul&gt;

&lt;figure class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;language-php&quot; data-lang=&quot;php&quot;&gt;&lt;span class=&quot;k&quot;&gt;include&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;'pot_do_datoteke'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;);&lt;/span&gt; &lt;span class=&quot;c1&quot;&gt;// Namesto pot_do_datoteke vpišite pot do datoteke
&lt;/span&gt;
&lt;span class=&quot;nv&quot;&gt;$razred&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;new&lt;/span&gt; &lt;span class=&quot;nx&quot;&gt;razred&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt; &lt;span class=&quot;c1&quot;&gt;// Namesto razred vpišite ime razreda
&lt;/span&gt;
&lt;span class=&quot;k&quot;&gt;echo&lt;/span&gt; &lt;span class=&quot;nv&quot;&gt;$razred&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;nv&quot;&gt;$ime_vrednosti&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;//&lt;/span&gt; &lt;span class=&quot;nx&quot;&gt;Namesto&lt;/span&gt; &lt;span class=&quot;nx&quot;&gt;razred&lt;/span&gt; &lt;span class=&quot;nx&quot;&gt;vpišite&lt;/span&gt; &lt;span class=&quot;nx&quot;&gt;ime&lt;/span&gt; &lt;span class=&quot;nx&quot;&gt;razreda&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;nx&quot;&gt;namesto&lt;/span&gt; &lt;span class=&quot;nx&quot;&gt;ime_vrednosti&lt;/span&gt; &lt;span class=&quot;nx&quot;&gt;vpišite&lt;/span&gt; &lt;span class=&quot;nx&quot;&gt;ime&lt;/span&gt; &lt;span class=&quot;nx&quot;&gt;vrednosti&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;

&lt;ul&gt;
  &lt;li&gt;Če niste uporabili razreda vpišite:&lt;/li&gt;
&lt;/ul&gt;

&lt;figure class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;language-php&quot; data-lang=&quot;php&quot;&gt;&lt;span class=&quot;k&quot;&gt;include&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;'pot_do_datoteke'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;);&lt;/span&gt; &lt;span class=&quot;c1&quot;&gt;// Namesto pot_do_datoteke vpišite pot do datoteke
&lt;/span&gt;
&lt;span class=&quot;k&quot;&gt;echo&lt;/span&gt; &lt;span class=&quot;nv&quot;&gt;$ime_vrednosti&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;//&lt;/span&gt; &lt;span class=&quot;nx&quot;&gt;Namesto&lt;/span&gt; &lt;span class=&quot;nx&quot;&gt;ime_vrednosti&lt;/span&gt; &lt;span class=&quot;nx&quot;&gt;vpišite&lt;/span&gt; &lt;span class=&quot;nx&quot;&gt;ime&lt;/span&gt; &lt;span class=&quot;nx&quot;&gt;vrednosti&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;

&lt;h3 id=&quot;napake&quot;&gt;Napake&lt;/h3&gt;

&lt;ul&gt;
  &lt;li&gt;Če želite pridobiti napako, vpišite:&lt;/li&gt;
&lt;/ul&gt;

&lt;figure class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;language-php&quot; data-lang=&quot;php&quot;&gt;&lt;span class=&quot;k&quot;&gt;echo&lt;/span&gt; &lt;span class=&quot;nv&quot;&gt;$config&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;na&quot;&gt;status_message&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;();&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;

&lt;ul&gt;
  &lt;li&gt;Če želite pridobiti status, vpišite:&lt;/li&gt;
&lt;/ul&gt;

&lt;figure class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;language-php&quot; data-lang=&quot;php&quot;&gt;&lt;span class=&quot;k&quot;&gt;echo&lt;/span&gt; &lt;span class=&quot;nv&quot;&gt;$config&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;na&quot;&gt;status&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;();&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;//&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;1&lt;/span&gt; &lt;span class=&quot;nx&quot;&gt;pomeni&lt;/span&gt; &lt;span class=&quot;nx&quot;&gt;dokončano&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;0&lt;/span&gt; &lt;span class=&quot;nx&quot;&gt;pomeni&lt;/span&gt; &lt;span class=&quot;nx&quot;&gt;napaka&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;</content><author><name></name></author><category term="konfiguracija" /><category term="nastavitve" /><summary type="html">PHP Config Writer je PHP knjižnjica za enostavno zapisovanje konfiguracijskih datotek v navadni ali razredni obliki.</summary></entry></feed>